From e459e3df3430c2fdd0210b499de1f5a0c3922e9c Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sat, 28 Jan 2012 19:55:38 +0000 Subject: [PATCH] Fix to r1142. --- Library/MeasureNet.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/MeasureNet.cpp b/Library/MeasureNet.cpp index 2924e062..db622a05 100644 --- a/Library/MeasureNet.cpp +++ b/Library/MeasureNet.cpp @@ -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);