mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Added the function that measures the CPU usage for multi core/processors.
For instance: [MeasureCPU] Measure=CPU [MeasureCPU1] Measure=CPU Processor=1 [MeasureCPU2] Measure=CPU Processor=2 MeasureCPU returns the average of the CPU usage across all core/processors. This is same as Processor=0. MeasureCPU1/2 returns the CPU usage of each core/processor. ----- - Fixed the problem that the correct value is not returned if the Interface=0 in NetIn/NetOut/NetTotal measure. The cause of this problem is because the value of all filter devices is summed in Vista or newer. ----- - Added the option (Debug) for debug logging. This must be put under [Rainmeter]-section in Rainmeter.ini. This option specifies whether extra debugging log from Rainmeter.dll is output to Rainmeter.log. [Rainmeter] Debug=1 Default is 0. ----- - Application: Fixed a wrong return value type from MainWndProc.
This commit is contained in:
@ -136,6 +136,7 @@ public:
|
||||
static void SetCommandLine(LPCTSTR CmdLine) { c_CmdLine = CmdLine;};
|
||||
static LPCTSTR GetCommandLine() { return c_CmdLine.c_str(); };
|
||||
static GlobalConfig& GetGlobalConfig() { return c_GlobalConfig; };
|
||||
static bool GetDebug() { return c_Debug; }
|
||||
|
||||
void ReloadSettings();
|
||||
void SaveSettings();
|
||||
@ -227,6 +228,7 @@ private:
|
||||
static bool c_DummyLitestep; // true, if not a Litestep plugin
|
||||
static std::wstring c_CmdLine; // The command line arguments
|
||||
static GlobalConfig c_GlobalConfig;
|
||||
static bool c_Debug;
|
||||
};
|
||||
|
||||
#ifdef LIBRARY_EXPORTS
|
||||
|
Reference in New Issue
Block a user