X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fmemory.cgi;h=1708b0f3210edb905df93b7565390c21cb56ef34;hb=4da0506b000ae41025bb5ddb6111171f6f0cf0f5;hp=35ce7a0f1137882caa80af8c82904c8705f6622e;hpb=eb5359d7ff2e39e01acccbc338c439ea7f34226b;p=ipfire-2.x.git diff --git a/html/cgi-bin/memory.cgi b/html/cgi-bin/memory.cgi index 35ce7a0f11..1708b0f321 100644 --- a/html/cgi-bin/memory.cgi +++ b/html/cgi-bin/memory.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2008 Michael Tremer & Christian Schmidt # +# Copyright (C) 2005-2010 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -56,9 +56,11 @@ if ( $querry[0] =~ "memory"){ &Graphs::makegraphbox("memory.cgi","memory","day"); &Header::closebox(); - &Header::openbox('100%', 'center', "Swap $Lang::tr{'graph'}"); - &Graphs::makegraphbox("memory.cgi","swap","day"); - &Header::closebox(); + if ( `ls $mainsettings{'RRDLOG'}/collectd/localhost/swap 2>/dev/null` ) { + &Header::openbox('100%', 'center', "Swap $Lang::tr{'graph'}"); + &Graphs::makegraphbox("memory.cgi","swap","day"); + &Header::closebox(); + } &Header::openbox('100%', 'center', $Lang::tr{'memory'}); print "";