X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fmemory.cgi;h=1708b0f3210edb905df93b7565390c21cb56ef34;hb=56c2cc6542556f053cf4eb287c25f6617391df89;hp=35ce7a0f1137882caa80af8c82904c8705f6622e;hpb=7682f136cd2c02b625ddba97ad6009e69e5ff699;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/html/cgi-bin/memory.cgi b/html/cgi-bin/memory.cgi index 35ce7a0f1..1708b0f32 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 "";