mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Removed potentially unintentional integer overflow in NxsBandwidthRecorder::recordEvent.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8566 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a0af7def27
commit
c97dae0652
@ -136,7 +136,7 @@ public:
|
||||
|
||||
// compute time(NULL) in msecs, for a more accurate bw estimate.
|
||||
|
||||
uint64_t now = tv.tv_sec * 1000 + tv.tv_usec/1000 ;
|
||||
uint64_t now = (uint64_t) tv.tv_sec * 1000 + tv.tv_usec/1000 ;
|
||||
|
||||
total_record += bw ;
|
||||
++total_events ;
|
||||
|
Loading…
Reference in New Issue
Block a user