From 27af737a3a9568f16ef6e6bc481ca7d51dbe4534 Mon Sep 17 00:00:00 2001 From: Brian Ferguson Date: Sun, 23 Feb 2014 11:12:06 -0700 Subject: [PATCH] SysInfo: Idle_Time: Removed "scaling" feature and default to seconds. --- Plugins/PluginSysInfo/SysInfo.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Plugins/PluginSysInfo/SysInfo.cpp b/Plugins/PluginSysInfo/SysInfo.cpp index 3c1519d0..dc4bb66b 100644 --- a/Plugins/PluginSysInfo/SysInfo.cpp +++ b/Plugins/PluginSysInfo/SysInfo.cpp @@ -135,7 +135,6 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue) } else if (_wcsicmp(L"IDLE_TIME", type) == 0) { - defaultData = 1; measure->type = MEASURE_IDLE_TIME; } else if (_wcsicmp(L"ADAPTER_DESCRIPTION", type) == 0) @@ -398,8 +397,7 @@ PLUGIN_EXPORT double Update(void* data) { LASTINPUTINFO idle = { sizeof(LASTINPUTINFO) }; GetLastInputInfo(&idle); - int scale = (measure->data < 1) ? 1 : measure->data; - return (double)((GetTickCount() - idle.dwTime) / scale); + return (double)((GetTickCount() - idle.dwTime) / 1000); } case MEASURE_INTERNET_CONNECTIVITY: