0
0
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:
Kristina 2011-07-07 17:09:09 -04:00
parent 30037ebe7c
commit 5a09532d76

View File

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