projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5480067
)
collection.cgi now displays hourly-graphs.
author
octo
<octo>
Thu, 6 Apr 2006 05:56:20 +0000
(
05:56
+0000)
committer
octo
<octo>
Thu, 6 Apr 2006 05:56:20 +0000
(
05:56
+0000)
contrib/collection.cgi
patch
|
blob
|
history
diff --git
a/contrib/collection.cgi
b/contrib/collection.cgi
index
392c62b
..
63b1563
100755
(executable)
--- a/
contrib/collection.cgi
+++ b/
contrib/collection.cgi
@@
-1196,6
+1196,7
@@
sub output_graph
$Inst = $files->{$Type}[0];
}
$Inst = $files->{$Type}[0];
}
+ #push (@cmd, '-', '-a', 'PNG', '-s', $TimeSpan, '-w', 800, '-h', 150);
push (@cmd, '-', '-a', 'PNG', '-s', $TimeSpan);
push (@cmd, @{$GraphArgs->{$Type}}) if (defined ($GraphArgs->{$Type}));
push (@cmd, '-', '-a', 'PNG', '-s', $TimeSpan);
push (@cmd, @{$GraphArgs->{$Type}}) if (defined ($GraphArgs->{$Type}));
@@
-1290,6
+1291,8
@@
HEADER
print <<HTML;
</ul>
print <<HTML;
</ul>
+ <h3>Hourly</h3>
+ <div><img src="$MySelf$RelDir/$Type/hour" /></div>
<h3>Daily</h3>
<div><img src="$MySelf$RelDir/$Type/day" /></div>
<h3>Weekly</h3>
<h3>Daily</h3>
<div><img src="$MySelf$RelDir/$Type/day" /></div>
<h3>Weekly</h3>
@@
-1314,6
+1317,8
@@
HTML
}
print <<HTML;
}
print <<HTML;
+ <h3>Hourly</h3>
+ <div><img src="$MySelf$RelDir/$ext/hour" /></div>
<h3>Daily</h3>
<div><img src="$MySelf$RelDir/$ext/day" /></div>
<h3>Weekly</h3>
<h3>Daily</h3>
<div><img src="$MySelf$RelDir/$ext/day" /></div>
<h3>Weekly</h3>