From 0aa3d7dd7d1947828bea947f68171af21b3515b9 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 1 Jan 2012 13:26:29 +0000 Subject: [PATCH] Additional change to r1098. --- Plugins/PluginProcess/PluginProcess.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/PluginProcess/PluginProcess.cpp b/Plugins/PluginProcess/PluginProcess.cpp index 528941d0..68159cd5 100644 --- a/Plugins/PluginProcess/PluginProcess.cpp +++ b/Plugins/PluginProcess/PluginProcess.cpp @@ -29,7 +29,7 @@ extern "C" { __declspec(dllexport) UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id); __declspec(dllexport) void Finalize(HMODULE instance, UINT id); -__declspec(dllexport) UINT Update(UINT id); +__declspec(dllexport) double Update2(UINT id); __declspec(dllexport) UINT GetPluginVersion(); __declspec(dllexport) LPCTSTR GetPluginAuthor(); } @@ -77,9 +77,9 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id) This function is called when new value should be measured. The function returns the new value. */ -UINT Update(UINT id) +double Update2(UINT id) { - UINT result = 0; + double result = -1.0; std::map::const_iterator iter = g_Values.find(id); if (iter != g_Values.end()) @@ -92,7 +92,7 @@ UINT Update(UINT id) g_UpdateCount = 0; } - result = (UINT)(*iter).second.isRunning ? 1 : -1; + result = (*iter).second.isRunning ? 1.0 : -1.0; } return result;