mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue