summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2015-05-13 12:42:34 +0200
committerSimon Rettberg2015-05-13 12:42:34 +0200
commit396fb0ff456e10fc7809c3acf41c0ffb8dd6a724 (patch)
tree021b7f59b4a9f9289dc8224eac2b99ea4d5aee79
parent[SERVER] Reload images in another thread when triggered by signal (diff)
downloaddnbd3-396fb0ff456e10fc7809c3acf41c0ffb8dd6a724.tar.gz
dnbd3-396fb0ff456e10fc7809c3acf41c0ffb8dd6a724.tar.xz
dnbd3-396fb0ff456e10fc7809c3acf41c0ffb8dd6a724.zip
[SERVER] Fix integer overflow of global bytesReceived getter
-rw-r--r--src/server/uplink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/uplink.c b/src/server/uplink.c
index e1c776b..aa72896 100644
--- a/src/server/uplink.c
+++ b/src/server/uplink.c
@@ -43,7 +43,7 @@ void uplink_globalsInit()
uint64_t uplink_getTotalBytesReceived()
{
spin_lock( &statisticsReceivedLock );
- int tmp = totalBytesReceived;
+ uint64_t tmp = totalBytesReceived;
spin_unlock( &statisticsReceivedLock );
return tmp;
}