Skip to content

Commit

Permalink
Fix empty.rrd regeneration bug due to datastore change
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierBerger committed Aug 16, 2014
1 parent 84ced8a commit 5ee7ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpimonitor/rpimonitord
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ sub DoGET
$path =~ /dynamic\.json/ and $this->SendStatus( $configuration ) and return;
$path =~ /([^\/]+)\.json/ and $this->SendJSON($this->{$1}) and return;
#Recreate empty rrd on demand
$path =~ /empty\.rrd/ and $configuration->CreateRRD( "$configuration->{'daemon'}->{'webroot'}/stat/empty.rrd", 'empty', 'GAUGE', 'U', 'U' );
$path =~ /empty\.rrd/ and $configuration->CreateRRD( "$configuration->{'daemon'}->{'datastore'}/stat/empty.rrd", 'empty', 'GAUGE', 'U', 'U' );

#The main page (/) is requested
$path =~ /^\/$/ and $path = "/index.html";
Expand Down

0 comments on commit 5ee7ee9

Please sign in to comment.