mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
memory.cgi: Use perl mechanism to check if the rrd file for the swap exists.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
2386d2eff7
commit
4353c57924
@@ -56,7 +56,7 @@ if ( $querry[0] =~ "memory"){
|
||||
&Graphs::makegraphbox("memory.cgi","memory","day");
|
||||
&Header::closebox();
|
||||
|
||||
if ( `ls $mainsettings{'RRDLOG'}/collectd/localhost/swap 2>/dev/null` ) {
|
||||
if (-f $mainsettings{'RRDLOG'}/collectd/localhost/swap) {
|
||||
&Header::openbox('100%', 'center', "Swap $Lang::tr{'graph'}");
|
||||
&Graphs::makegraphbox("memory.cgi","swap","day");
|
||||
&Header::closebox();
|
||||
|
||||
Reference in New Issue
Block a user