mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Fix makegraphs settings readerror
This commit is contained in:
@@ -46,7 +46,7 @@ sub updatehdddata
|
|||||||
my $standby;
|
my $standby;
|
||||||
my @array = split(/\//,$disk);
|
my @array = split(/\//,$disk);
|
||||||
|
|
||||||
if ( ! -e "$rrdlog/hddshutdown-".$array[$#array].".rrd"){
|
if ( ! -e "$mainsettings{'RRDLOG'}/hddshutdown-".$array[$#array].".rrd"){
|
||||||
# database did not exist -> create
|
# database did not exist -> create
|
||||||
RRDs::create ("$mainsettings{'RRDLOG'}/hddshutdown-".$array[$#array].".rrd", "--step=300",
|
RRDs::create ("$mainsettings{'RRDLOG'}/hddshutdown-".$array[$#array].".rrd", "--step=300",
|
||||||
"DS:standby:GAUGE:600:0:1",
|
"DS:standby:GAUGE:600:0:1",
|
||||||
|
|||||||
Reference in New Issue
Block a user