Diffstat (limited to 'noncore/settings/netsystemtime') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/predicttabwidget.cpp | 3 |
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 @@ -122,3 +122,4 @@ PredictTabWidget::PredictTabWidget( QWidget *parent ) } - _shiftPerSec /= lookupCount; + if(lookupCount) + _shiftPerSec /= lookupCount; QString drift = QString::number( _shiftPerSec * 60 * 60); |