summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a041475)
raw | patch | inline | side by side (parent: a041475)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 24 Feb 2003 18:26:37 +0000 (18:26 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 24 Feb 2003 18:26:37 +0000 (18:26 +0000) |
program/examples/piped-demo.pl.in | patch | blob | history |
index 7a3a72ed81f2bbc07aa4fb82879e177644ef6d30..82232fb9d5f2c4c7f13b5c19bf12a4da57ae5ef5 100755 (executable)
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' ".
"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;
}