summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/predicttabwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/settings/netsystemtime/predicttabwidget.cpp b/noncore/settings/netsystemtime/predicttabwidget.cpp
index 8dc889f..a9fe418 100644
--- a/noncore/settings/netsystemtime/predicttabwidget.cpp
+++ b/noncore/settings/netsystemtime/predicttabwidget.cpp
@@ -119,9 +119,10 @@ PredictTabWidget::PredictTabWidget( QWidget *parent )
119 tblLookups->setText( i, 0, QString::number( shiftPerSec * 60 * 60 ) ); 119 tblLookups->setText( i, 0, QString::number( shiftPerSec * 60 * 60 ) );
120 tblLookups->setText( i, 2, QString::number( shift ) ); 120 tblLookups->setText( i, 2, QString::number( shift ) );
121 tblLookups->setText( i, 1, QString::number( last / ( 60 * 60 ) ) ); 121 tblLookups->setText( i, 1, QString::number( last / ( 60 * 60 ) ) );
122 } 122 }
123 _shiftPerSec /= lookupCount; 123 if(lookupCount)
124 _shiftPerSec /= lookupCount;
124 QString drift = QString::number( _shiftPerSec * 60 * 60); 125 QString drift = QString::number( _shiftPerSec * 60 * 60);
125 drift.append( tr( " s/h" ) ); 126 drift.append( tr( " s/h" ) );
126 lblDrift->setText( drift ); 127 lblDrift->setText( drift );
127 128