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:
thunder2 2015-06-28 12:13:56 +00:00
parent a0af7def27
commit c97dae0652

View File

@ -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 ;