[Debian-l10n-devel] Bug#896678: Bug #896678: l10n-rrd cron jobs fail with "llegal attempt to update using time X when last update time is X (minimum one second step)"
Laura Arjona Reina
larjona at debian.org
Wed Dec 4 09:39:27 GMT 2019
Hi,
I've been doing some tests trying to fix other issue in the scripts, and this is
what I found out about this bug:
* The error is caused when "rrdtool update" is called with a date value that is
not different than the one used when we called "rrdtool create"
* The specific code that causes the error is:
https://salsa.debian.org/l10n-team/dl10n/blob/master/dl10n-rrd/manpages-rrd.pl
Line 100-102:
use POSIX qw(strftime);
$date = strftime "%s", localtime;
$date = (int($date / $step)+1)*$step
https://salsa.debian.org/l10n-team/dl10n/blob/master/dl10n-rrd/dl10n-rrd
Line 244-246
use POSIX qw(strftime);
$date = strftime "%s", localtime;
$date = (int($date / $step)+1)*$step
However, I'm not seeing that error for some time. I'll keep an eye on the
reports to see if it happens again.
Kind regards,
--
Laura Arjona Reina
https://wiki.debian.org/LauraArjona
More information about the Debian-l10n-devel
mailing list