]> git.eshelyaron.com Git - emacs.git/commitdiff
see ChangeLog
authorJohn Wiegley <johnw@newartisans.com>
Fri, 16 Mar 2001 21:48:27 +0000 (21:48 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 16 Mar 2001 21:48:27 +0000 (21:48 +0000)
lisp/calendar/timeclock.el

index 550214c6c29371f93edd1f810c41be4d47be430d..d41a1f8c0a4295675cb6ca4ba667ca02d2114a7b 100644 (file)
@@ -460,7 +460,8 @@ The amount returned is relative to the value of `timeclock-workday'.
 If TODAY-ONLY is non-nil, the value returned will be relative only to
 the time worked today, and not to past time.  This argument only makes
 a difference if `timeclock-relative' is non-nil."
-  (- (timeclock-find-discrep today-only)))
+  (let ((discrep (timeclock-find-discrep today-only)))
+    (or (and discrep (- discrep)) 0.0)))
 
 (defsubst timeclock-currently-in-p ()
   "Return non-nil if the user is currently clocked in."