[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#491476: amavis-stats: Error with img path and COMMENT enddate strings



Forgot to remove some changes before sending the patch... sorry.

Jeff Green wrote:
Package: amavis-stats
Version: 0.1.12-7.3
Severity: important

... snip...

asDbg($opts);
-    $ret = rrd_graph("/usr/share/amavis-stats/$img" , $opts, count($opts));
+    $ret = rrd_graph("$img" , $opts, count($opts));
if (!is_array($ret)) {
         $err = rrd_error();
The above modification was in there for debugging purposes and are not needed. Only the COMMENT changes were needed to make it work.
@@ -769,7 +769,7 @@
     }
 */
     $opts[] = "COMMENT:amavis-stats v$asVersion ";
-    $opts[] = "COMMENT:$enddate" . str_replace(":", "\:", $enddate) . " \\r";
+    //$opts[] = "COMMENT:$enddate" . str_replace(":", "\:", $enddate) . " \\r";
/*
     * debugging - graph definitions
@@ -777,7 +777,7 @@
     asDbg($opts);
$start = microtime();
-    $ret = rrd_graph("/usr/share/amavis-stats/$img" , $opts, count($opts));
+    $ret = rrd_graph("$img" , $opts, count($opts));
     $t = elapsed($start);
     if (!is_array($ret)) {
         $err = rrd_error();


Ditto for the above changed line.

-jeff



Reply to: