Skip to content

Commit 5ee7ee9

Browse files
committed
Fix empty.rrd regeneration bug due to datastore change
1 parent 84ced8a commit 5ee7ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpimonitor/rpimonitord

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ sub DoGET
408408
$path =~ /dynamic\.json/ and $this->SendStatus( $configuration ) and return;
409409
$path =~ /([^\/]+)\.json/ and $this->SendJSON($this->{$1}) and return;
410410
#Recreate empty rrd on demand
411-
$path =~ /empty\.rrd/ and $configuration->CreateRRD( "$configuration->{'daemon'}->{'webroot'}/stat/empty.rrd", 'empty', 'GAUGE', 'U', 'U' );
411+
$path =~ /empty\.rrd/ and $configuration->CreateRRD( "$configuration->{'daemon'}->{'datastore'}/stat/empty.rrd", 'empty', 'GAUGE', 'U', 'U' );
412412

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

0 commit comments

Comments
 (0)