diff options
author | Simon Rettberg | 2015-05-13 12:42:34 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-05-13 12:42:34 +0200 |
commit | 396fb0ff456e10fc7809c3acf41c0ffb8dd6a724 (patch) | |
tree | 021b7f59b4a9f9289dc8224eac2b99ea4d5aee79 | |
parent | [SERVER] Reload images in another thread when triggered by signal (diff) | |
download | dnbd3-396fb0ff456e10fc7809c3acf41c0ffb8dd6a724.tar.gz dnbd3-396fb0ff456e10fc7809c3acf41c0ffb8dd6a724.tar.xz dnbd3-396fb0ff456e10fc7809c3acf41c0ffb8dd6a724.zip |
[SERVER] Fix integer overflow of global bytesReceived getter
-rw-r--r-- | src/server/uplink.c | 2 |
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; } |