HotSaNIC ping module diff

카테고리 없음 2011. 11. 9. 06:07 Posted by Relipmoc
diff -ur hotsanic-2.4/modules/ping/diagrams.pl hotsanic-2.6/modules/ping/diagrams.pl
--- hotsanic-2.4/modules/ping/diagrams.pl	2003-10-16 12:25:38.000000000 +0200
+++ hotsanic-2.6/modules/ping/diagrams.pl	2007-11-20 04:01:47.000000000 +0100
@@ -71,7 +71,7 @@
 	if ($range eq "1h") {
           ($prints,$xs,$ys)=RRDs::graph $TEMPNAME, "-i", "-b","1000", "-v",$LEGEND,
             "-s","-$fullrange", "-w",$CONFIG{WIDTH}, "-h",$CONFIG{HEIGHT}, @OPTIONS, "-a", uc($IMGFMT),
-            "-u $UPPERBORDER", "-l $LOWBORDER", "--title", "ping-times to $dev - last $descr ($DATESTRING)",
+            "-u", $UPPERBORDER, "-l", $LOWBORDER, "--title", "ping-times to $dev - last $descr ($DATESTRING)",
             "DEF:min=rrd/$dev.rrd:min:AVERAGE",
             "DEF:avg=rrd/$dev.rrd:avg:AVERAGE",
             "DEF:max=rrd/$dev.rrd:max:AVERAGE",
@@ -82,16 +82,16 @@
             "LINE1:max#c00000:max",
             "GPRINT:max:MIN:  (min\\:%6.2lf%s /\\g",
             "GPRINT:max:AVERAGE: avg\\:%6.2lf%s /\\g",
-            "GPRINT:max:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+            "GPRINT:max:MAX: max\\:%6.2lf%s $LEGEND)\\n",
             "AREA:min#ffffff:",
             "LINE1:avg#000000:avg",
             "GPRINT:avg:MIN:  (min\\:%6.2lf%s /\\g",
             "GPRINT:avg:AVERAGE: avg\\:%6.2lf%s /\\g",
-            "GPRINT:avg:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+            "GPRINT:avg:MAX: max\\:%6.2lf%s $LEGEND)\\n",
             "LINE1:min#00c000:min",
             "GPRINT:min:MIN:  (min\\:%6.2lf%s /\\g",
             "GPRINT:min:AVERAGE: avg\\:%6.2lf%s /\\g",
-            "GPRINT:min:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+            "GPRINT:min:MAX: max\\:%6.2lf%s $LEGEND)\\n",
             "AREA:wrong#ffffa0:unreachable",
             "HRULE:0#000000";
           }
@@ -130,7 +130,7 @@
           else {
             ($prints,$xs,$ys)=RRDs::graph $TEMPNAME, "-i", "-b","1000", "-v",$LEGEND,
               "-s","-$fullrange", "-w",$CONFIG{WIDTH}, "-h",$CONFIG{HEIGHT}, @OPTIONS, "-a", uc($IMGFMT),
-              "-u $UPPERBORDER", "-l $LOWBORDER", "--title", "ping-times to $dev - last $descr ($DATESTRING)",
+              "-u", $UPPERBORDER, "-l", $LOWBORDER, "--title", "ping-times to $dev - last $descr ($DATESTRING)",
               "DEF:mini=rrd/$dev.rrd:min:MIN",
               "DEF:mina=rrd/$dev.rrd:min:AVERAGE",
               "DEF:minx=rrd/$dev.rrd:min:MAX",
@@ -144,17 +144,17 @@
               "AREA:maxx#ffc0c0:max",
               "GPRINT:maxi:MIN:  (min\\:%6.2lf%s /\\g",
               "GPRINT:maxa:AVERAGE: avg\\:%6.2lf%s /\\g",
-              "GPRINT:maxx:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+              "GPRINT:maxx:MAX: max\\:%6.2lf%s $LEGEND)\\n",
               "AREA:maxi#ffffff:",
               "AREA:avgx#c0c0ff:avg",
               "GPRINT:avgi:MIN:  (min\\:%6.2lf%s /\\g",
               "GPRINT:avga:AVERAGE: avg\\:%6.2lf%s /\\g",
-              "GPRINT:avgx:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+              "GPRINT:avgx:MAX: max\\:%6.2lf%s $LEGEND)\\n",
               "AREA:avgi#ffffff:",
               "AREA:minx#c0ffc0:min",
               "GPRINT:mini:MIN:  (min\\:%6.2lf%s /\\g",
               "GPRINT:mina:AVERAGE: avg\\:%6.2lf%s /\\g",
-              "GPRINT:minx:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+              "GPRINT:minx:MAX: max\\:%6.2lf%s $LEGEND)\\n",
               "AREA:mini#ffffff:",
               "LINE1:maxa#c00000:",
               "LINE1:mina#00c000:",
diff -ur hotsanic-2.4/modules/ping/diagrams.pl hotsanic-2.6/modules/ping/diagrams.pl
--- hotsanic-2.4/modules/ping/diagrams.pl	2003-10-16 12:25:38.000000000 +0200
+++ hotsanic-2.6/modules/ping/diagrams.pl	2007-11-20 04:01:47.000000000 +0100
@@ -71,7 +71,7 @@
 	if ($range eq "1h") {
           ($prints,$xs,$ys)=RRDs::graph $TEMPNAME, "-i", "-b","1000", "-v",$LEGEND,
             "-s","-$fullrange", "-w",$CONFIG{WIDTH}, "-h",$CONFIG{HEIGHT}, @OPTIONS, "-a", uc($IMGFMT),
-            "-u $UPPERBORDER", "-l $LOWBORDER", "--title", "ping-times to $dev - last $descr ($DATESTRING)",
+            "-u", $UPPERBORDER, "-l", $LOWBORDER, "--title", "ping-times to $dev - last $descr ($DATESTRING)",
             "DEF:min=rrd/$dev.rrd:min:AVERAGE",
             "DEF:avg=rrd/$dev.rrd:avg:AVERAGE",
             "DEF:max=rrd/$dev.rrd:max:AVERAGE",
@@ -82,16 +82,16 @@
             "LINE1:max#c00000:max",
             "GPRINT:max:MIN:  (min\\:%6.2lf%s /\\g",
             "GPRINT:max:AVERAGE: avg\\:%6.2lf%s /\\g",
-            "GPRINT:max:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+            "GPRINT:max:MAX: max\\:%6.2lf%s $LEGEND)\\n",
             "AREA:min#ffffff:",
             "LINE1:avg#000000:avg",
             "GPRINT:avg:MIN:  (min\\:%6.2lf%s /\\g",
             "GPRINT:avg:AVERAGE: avg\\:%6.2lf%s /\\g",
-            "GPRINT:avg:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+            "GPRINT:avg:MAX: max\\:%6.2lf%s $LEGEND)\\n",
             "LINE1:min#00c000:min",
             "GPRINT:min:MIN:  (min\\:%6.2lf%s /\\g",
             "GPRINT:min:AVERAGE: avg\\:%6.2lf%s /\\g",
-            "GPRINT:min:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+            "GPRINT:min:MAX: max\\:%6.2lf%s $LEGEND)\\n",
             "AREA:wrong#ffffa0:unreachable",
             "HRULE:0#000000";
           }
@@ -130,7 +130,7 @@
           else {
             ($prints,$xs,$ys)=RRDs::graph $TEMPNAME, "-i", "-b","1000", "-v",$LEGEND,
               "-s","-$fullrange", "-w",$CONFIG{WIDTH}, "-h",$CONFIG{HEIGHT}, @OPTIONS, "-a", uc($IMGFMT),
-              "-u $UPPERBORDER", "-l $LOWBORDER", "--title", "ping-times to $dev - last $descr ($DATESTRING)",
+              "-u", $UPPERBORDER, "-l", $LOWBORDER, "--title", "ping-times to $dev - last $descr ($DATESTRING)",
               "DEF:mini=rrd/$dev.rrd:min:MIN",
               "DEF:mina=rrd/$dev.rrd:min:AVERAGE",
               "DEF:minx=rrd/$dev.rrd:min:MAX",
@@ -144,17 +144,17 @@
               "AREA:maxx#ffc0c0:max",
               "GPRINT:maxi:MIN:  (min\\:%6.2lf%s /\\g",
               "GPRINT:maxa:AVERAGE: avg\\:%6.2lf%s /\\g",
-              "GPRINT:maxx:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+              "GPRINT:maxx:MAX: max\\:%6.2lf%s $LEGEND)\\n",
               "AREA:maxi#ffffff:",
               "AREA:avgx#c0c0ff:avg",
               "GPRINT:avgi:MIN:  (min\\:%6.2lf%s /\\g",
               "GPRINT:avga:AVERAGE: avg\\:%6.2lf%s /\\g",
-              "GPRINT:avgx:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+              "GPRINT:avgx:MAX: max\\:%6.2lf%s $LEGEND)\\n",
               "AREA:avgi#ffffff:",
               "AREA:minx#c0ffc0:min",
               "GPRINT:mini:MIN:  (min\\:%6.2lf%s /\\g",
               "GPRINT:mina:AVERAGE: avg\\:%6.2lf%s /\\g",
-              "GPRINT:minx:MAX: max\\:%6.2lf%s $LEGEND)\\n:",
+              "GPRINT:minx:MAX: max\\:%6.2lf%s $LEGEND)\\n",
               "AREA:mini#ffffff:",
               "LINE1:maxa#c00000:",
               "LINE1:mina#00c000:",

댓글을 달아 주세요