mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fix to r1142.
This commit is contained in:
parent
92864ea360
commit
e459e3df34
@ -478,7 +478,6 @@ void CMeasureNet::ReadConfig(CConfigParser& parser, const WCHAR* section, NET ne
|
||||
{
|
||||
netName = L"NetTotalSpeed";
|
||||
value = Rainmeter->GetGlobalConfig().netInSpeed + Rainmeter->GetGlobalConfig().netOutSpeed;
|
||||
CSystem::SetNetworkStatisticsTimer();
|
||||
}
|
||||
|
||||
double maxValue = parser.ReadFloat(section, L"MaxValue", -1);
|
||||
@ -492,7 +491,12 @@ void CMeasureNet::ReadConfig(CConfigParser& parser, const WCHAR* section, NET ne
|
||||
}
|
||||
|
||||
m_Interface = parser.ReadInt(section, L"Interface", 0);
|
||||
|
||||
m_Cumulative = 0!=parser.ReadInt(section, L"Cumulative", 0);
|
||||
if (m_Cumulative)
|
||||
{
|
||||
CSystem::SetNetworkStatisticsTimer();
|
||||
}
|
||||
|
||||
m_TrafficValue = parser.ReadFloat(section, L"TrafficValue", 0.0);
|
||||
m_TrafficAction = parser.ReadString(section, L"TrafficAction", L"", false);
|
||||
|
Loading…
Reference in New Issue
Block a user