Fixed a compilation error in the example

This commit is contained in:
Trustin Lee 2011-08-26 13:24:17 +09:00
parent 2fc18a00f6
commit 9f1c394697

View File

@ -337,7 +337,7 @@ public class TimeServerHandler extends &SimpleChannelHandler; {
&Channel; ch = e.getChannel();
&ChannelBuffer; time = &ChannelBuffers;.buffer(4);<co id="example.time.co2"/>
time.writeInt(System.currentTimeMillis() / 1000);
time.writeInt((int) (System.currentTimeMillis() / 1000));
&ChannelFuture; f = ch.write(time);<co id="example.time.co3"/>