summaryrefslogtreecommitdiff
path: root/plugins/dfnet
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dfnet')
-rwxr-xr-xplugins/dfnet/unix.c2
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;
}