X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=examples%2Fpiped-demo.pl.in;h=82232fb9d5f2c4c7f13b5c19bf12a4da57ae5ef5;hb=cc307a96e23a6079d60a05f785e6a51e4a635435;hp=7a3a72ed81f2bbc07aa4fb82879e177644ef6d30;hpb=ce639546543cbec37180422c300ddc6b3641c3bc;p=rrdtool.git diff --git a/examples/piped-demo.pl.in b/examples/piped-demo.pl.in index 7a3a72e..82232fb 100755 --- a/examples/piped-demo.pl.in +++ b/examples/piped-demo.pl.in @@ -69,6 +69,8 @@ print "\n"; print "* Creating $GRUNS SVG graphs: $SVG\n\n"; $now = time; +$localtime = scalar localtime(time); +$localtime = s/:/\\:/g; for ($i=0;$i<$GRUNS;$i++) { RRDp::cmd "graph $SVG ", "--title 'Test GRAPH' ", "--imgformat SVG --height 150 --vertical-label 'Dummy Units' ". @@ -88,7 +90,7 @@ RRDp::cmd "graph $SVG ", "--title 'Test GRAPH' ", "GPRINT:calc:MAX:'Max calc\\: %1.2lf %S'", "VRULE:".($now-3600)."#008877:'60 Minutes ago'", "COMMENT:'\\s'", - "COMMENT:'Graph created on\\: ".localtime(time())."\\c'"; + "COMMENT:'Graph created on\\: ".$localtime."\\c'"; $answer = RRDp::read; }