Fix division in CPU usage calculation on Windows.

This commit is contained in:
Jean-Louis Leroy 2015-04-13 15:03:51 -04:00
parent 2cf277b6f6
commit cf830f731f

View File

@ -305,7 +305,7 @@ static double MyCPUUsageRUsage() {
user.HighPart = user_time.dwHighDateTime;
user.LowPart = user_time.dwLowDateTime;
return (static_cast<double>(kernel.QuadPart) +
static_cast<double>(user.QuadPart)) / 1.0E-7;
static_cast<double>(user.QuadPart)) / 1.0E7;
#endif // OS_WINDOWS
}