Time Server Example -- Error in documentation
TiberiuRogojan
tiberiu.rogojan at gmail.com
Mon Aug 22 05:21:31 EDT 2011
This is just a small heads up, that the Time Server example found in the
documentation has a compilation error.
...
ChannelBuffer time = ChannelBuffers.buffer(4);
time.writeInt(System.currentTimeMillis() / 1000);
writeInt accepts ints, but the argument is of long type.
System.currentTimeMillis() / 1000 returns a long.
...
Probably others noticed that, but I didn't find it mentioned on the forums..
Just thought to let you know to fix the doc.
Thank you,
Tiberiu
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Time-Server-Example-Error-in-documentation-tp6710743p6710743.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list