mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
fix casting error
This commit is contained in:
parent
30037ebe7c
commit
5a09532d76
@ -169,7 +169,7 @@ namespace mongo {
|
||||
time_t after = mem.lastHeartbeat = before + (mem.ping / 1000);
|
||||
|
||||
// weight new ping with old pings
|
||||
mem.ping = (old.ping * .8) + (mem.ping * .2);
|
||||
mem.ping = (unsigned int)((old.ping * .8) + (mem.ping * .2));
|
||||
|
||||
if ( info["time"].isNumber() ) {
|
||||
long long t = info["time"].numberLong();
|
||||
|
Loading…
Reference in New Issue
Block a user