Package: weathermap4rrd
Version: 1.1.999+1.2rc3-1
Severity: grave
Tags: patch
Justification: renders package unusable


wethermap4rrd fetches the last sample from an rrd database by calling 
RRDs::last followed by RRDs::fetch. 
It contains a "fix" for RRDs v1.2 that moves the time back 300s before calling 
RRDs:fetch. This "fix" is
needed for RRDs v1.3 as well. Otherwise RRDs::fetch will return NaN data for 
many (but not all) rrd files.
I suggest the following (not to pretty) patch to make this package usable again:


--- weathermap4rrd-1.1.999+1.2rc3/weathermap    2005-05-23 20:25:50.000000000 
+0200
+++ weathermap4rrd-1.1.999+1.2rc3_fix/weathermap        2008-11-24 
01:39:40.000000000 +0100
@@ -101,7 +101,7 @@
                $DATE= RRDs::last "$data";
                $version=&rrdtool_getversion();
                print "RRDTool binary version detected : $version\n" if 
($DEBUG);
-               if ($version=="1.2") {
+               if ($version=="1.2" || $version=="1.3") {
                        $DATE= $DATE-300;
                }
                print "No date specified, last value will be read : ".scalar 
localtime($DATE)."\n" if ($DEBUG);



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages weathermap4rrd depends on:
ii  libgd-gd2-perl                1:2.39-2   Perl module wrapper for libgd - gd
ii  librrds-perl                  1.3.1-4    Time-series data storage and displ
ii  perl                          5.10.0-16  Larry Wall's Practical Extraction 

weathermap4rrd recommends no packages.

weathermap4rrd suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to