Package: worklog
Version: 1.8-4
Severity: normal
Tags: patch
(I see that the package hasn't been updated in years, so maybe no one cares
about this
project except me. I came across some bugs today that I hadn't noticed before,
and
since I use this app for billing clients, the rounding and seconds lost do add
up over
the course of a month)
fix incorrect time update. Bug can be seen by running for two seconds, then
pressing
enter. Note that 3 seconds displays on the screen. 2 seconds is displayed in
the
time.log.X file, but on program exit, 3 seconds will be written to the time.log
file.
If you then restart and exit worklog, the time will be fixed.
Modified: vendor/worklog/mine/worklog.c
===================================================================
--- vendor/worklog/mine/worklog.c 2009-09-25 16:32:57 UTC (rev 9552)
+++ vendor/worklog/mine/worklog.c 2009-09-25 18:10:14 UTC (rev 9553)
@@ -646,6 +646,8 @@
timer_value.it_interval.tv_usec=0 ;
setitimer(ITIMER_REAL,&timer_value,0) ;
update_skip_refresh=0 ;
+ // compensate for extra time about to be added incorrectly
+ project->time-=1 ;
alarm_handler(0) ;
mvaddstr(y_update,1," ") ;
}
-- System Information:
Debian Release: 5.0.3
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL
set to C)
Shell: /bin/sh linked to /bin/bash
Versions of packages worklog depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libncurses5 5.7+20081213-1 shared libraries for terminal hand
worklog recommends no packages.
worklog suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]