1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/net/knemo-kde4/files/patch-knemod-knemodaemon.cpp
Markus Brueffer e95f0fe30b - Update to version 0.4.1
- Switch mastersite back to the projectsite as the distfile of this
  version ships a correct buildsystem
2006-06-12 15:13:15 +00:00

12 lines
495 B
C++

--- src/knemod/knemodaemon.cpp.orig Mon Jun 12 15:47:54 2006
+++ src/knemod/knemodaemon.cpp Mon Jun 12 16:30:45 2006
@@ -306,6 +306,8 @@
// needed to calculate the current speed
mGeneralData.secondsSinceLastUpdate = mLastUpdateTime.secsTo( QDateTime::currentDateTime() );
+ if (mGeneralData.secondsSinceLastUpdate == 0)
+ mGeneralData.secondsSinceLastUpdate = 1;
mLastUpdateTime.setDate( QDate::currentDate() );
mLastUpdateTime.setTime( QTime::currentTime() );