summaryrefslogtreecommitdiff
path: root/~emulatorman/timekpr/Initializes_lastNotified_before_it_is_used.patch
diff options
context:
space:
mode:
Diffstat (limited to '~emulatorman/timekpr/Initializes_lastNotified_before_it_is_used.patch')
-rw-r--r--~emulatorman/timekpr/Initializes_lastNotified_before_it_is_used.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/~emulatorman/timekpr/Initializes_lastNotified_before_it_is_used.patch b/~emulatorman/timekpr/Initializes_lastNotified_before_it_is_used.patch
new file mode 100644
index 000000000..870a2670a
--- /dev/null
+++ b/~emulatorman/timekpr/Initializes_lastNotified_before_it_is_used.patch
@@ -0,0 +1,10 @@
+--- a/timekpr-client.py 2011-04-15 13:17:59.000000000 +0200
++++ b/timekpr-client.py 2011-04-15 13:19:06.000000000 +0200
+@@ -40,6 +40,7 @@
+ self.conffile = self.VAR['TIMEKPRDIR'] + '/' + self.username
+ self.limits, self.bfrom, self.bto = readusersettings(self.username, self.conffile)
+ self.timer = None
++ self.lastNotified = datetime.datetime.fromtimestamp(0);
+ self.checkLimits()
+ #Add a gobject loop to check limits:
+ self.timer = gobject.timeout_add(self.checkInterval * 1000, self.checkLimits)