aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2011-09-19 23:34:07 -0500
committerMatt Rude <[email protected]>2011-09-19 23:34:07 -0500
commitce4f68566e1c0087c4da6e6c06fafe4170b2ec32 (patch)
treed3e27f08b0940634f6a2bf6d48176d652a11644e /scripts
parent8d39366da3c90cd8df17e016aca1207da75e835b (diff)
downloadtime.mattrude.com-ce4f68566e1c0087c4da6e6c06fafe4170b2ec32.tar.gz
time.mattrude.com-ce4f68566e1c0087c4da6e6c06fafe4170b2ec32.tar.bz2
time.mattrude.com-ce4f68566e1c0087c4da6e6c06fafe4170b2ec32.zip
s/offset/clients/g
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/templates/graphs.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/templates/graphs.cgi b/scripts/templates/graphs.cgi
index e323f3b..efda9b2 100755
--- a/scripts/templates/graphs.cgi
+++ b/scripts/templates/graphs.cgi
@@ -34,7 +34,7 @@ my $ypoints = 200;
my $ypoints_small = 111;
my $xpoints_small = 296;
my $rrd = '/var/www/time.mattrude.com/rrd/POOL.rrd'; # path to where the RRD database is
-my $tmp_dir = '/var/www/time.mattrude.com/tmp'; # temporary directory where to store the images
+my $tmp_dir = '/var/tmp'; # temporary directory where to store the images
my @graphs = (
{ title => 'Last Day', seconds => 3600*24, },
@@ -100,7 +100,7 @@ sub rrd_graph_small(@) {
'--height', $ypoints_small,
'--start', "-$range",
'--end', $end,
- '--vertical-label', 'Server Offset',
+ '--vertical-label', 'Number of Clients',
'--lower-limit', 0,
'--units-exponent', 0, # don't show milli-messages/s
'--lazy',
@@ -140,7 +140,7 @@ sub graph_clients_small($$) {
my ($range, $file) = @_;
my $step = $range*$points_per_sample/$xpoints_small;
rrd_graph_small($range, $file, $ypoints_small,
- "DEF:clients=$rrd:offset:LAST",
+ "DEF:clients=$rrd:clients:LAST",
'AREA:clients#002A97FF: :',
'GPRINT:clients:LAST:Now\:%8.2lf %s',
'GPRINT:clients:AVERAGE:Avg\:%8.2lf %s',