From b14df8de469ac353fc85d5381f64fb7fa98502f9 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 24 Feb 2003 18:26:37 +0000 Subject: [PATCH] fix for : in piped demo git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@188 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/examples/piped-demo.pl.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/program/examples/piped-demo.pl.in b/program/examples/piped-demo.pl.in index 7a3a72ed..82232fb9 100755 --- a/program/examples/piped-demo.pl.in +++ b/program/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; } -- 2.30.2