summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp
index 7971f9a..40b5531 100644
--- a/noncore/settings/netsystemtime/ntp.cpp
+++ b/noncore/settings/netsystemtime/ntp.cpp
@@ -161,11 +161,12 @@ void Ntp::ntpFinished(OProcess *p)
161 { 161 {
162 cfg.setGroup("lookup_"+QString::number(lookupCount)); 162 cfg.setGroup("lookup_"+QString::number(lookupCount));
163 lookupCount++; 163 lookupCount++;
164 cfg.writeEntry("count",lookupCount);
165 _shiftPerSec = timeShift / secsSinceLast; 164 _shiftPerSec = timeShift / secsSinceLast;
166 qDebug("secs since last lookup %i", secsSinceLast);qDebug("timeshift since last lookup %f", timeShift);qDebug("timeshift since per sec %f", _shiftPerSec); 165 qDebug("secs since last lookup %i", secsSinceLast);qDebug("timeshift since last lookup %f", timeShift);qDebug("timeshift since per sec %f", _shiftPerSec);
167 cfg.writeEntry("secsSinceLast",secsSinceLast); 166 cfg.writeEntry("secsSinceLast",secsSinceLast);
168 cfg.writeEntry("timeShift",QString::number(timeShift)); 167 cfg.writeEntry("timeShift",QString::number(timeShift));
168 cfg.setGroup("lookups");
169 cfg.writeEntry("count",lookupCount);
169 cfg.writeEntry("lastNtp",true); 170 cfg.writeEntry("lastNtp",true);
170 } 171 }
171} 172}