diff options
Diffstat (limited to 'plugins/dfnet')
| -rwxr-xr-x | plugins/dfnet/unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/dfnet/unix.c b/plugins/dfnet/unix.c index b965bebc..840eb6a9 100755 --- a/plugins/dfnet/unix.c +++ b/plugins/dfnet/unix.c @@ -57,7 +57,7 @@ int sockPing() { RECV(data, 32, PSE_NET_BLOCKING); gettimeofday(&tvn, NULL); - return (tvn.tv_sec - tv.tv_sec) * 1000 + + return (int)(tvn.tv_sec - tv.tv_sec) * 1000 + (tvn.tv_usec - tv.tv_usec) / 1000; } |
