mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed mistake in previous commit
This commit is contained in:
parent
bb4bcbdce3
commit
b670d5efdd
@ -98,12 +98,18 @@ void CMeasureCPU::ReadConfig(CConfigParser& parser, const WCHAR* section)
|
|||||||
{
|
{
|
||||||
CMeasure::ReadConfig(parser, section);
|
CMeasure::ReadConfig(parser, section);
|
||||||
|
|
||||||
m_Processor = parser.ReadInt(section, L"Processor", 0);
|
int processor = parser.ReadInt(section, L"Processor", 0);
|
||||||
|
|
||||||
if (m_Processor < 0 || m_Processor > c_NumOfProcessors)
|
if (processor < 0 || processor > c_NumOfProcessors)
|
||||||
{
|
{
|
||||||
LogWithArgs(LOG_WARNING, L"CPU: Processor=%i invalid in [%s]", m_Processor, section);
|
LogWithArgs(LOG_WARNING, L"CPU: Processor=%i invalid in [%s]", m_Processor, section);
|
||||||
m_Processor = 0;
|
processor = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (processor != m_Processor)
|
||||||
|
{
|
||||||
|
m_Processor = processor;
|
||||||
|
m_OldTime[0] = m_OldTime[1] = 0.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user