memory.cgi: Fix missing qoutes.

Message ID 20210619135234.2025-1-stefan.schantl@ipfire.org
State Accepted
Commit 6239e587f047e6d1f73ede8c7562b5ec6b26815d
Headers
Series memory.cgi: Fix missing qoutes. |

Commit Message

Stefan Schantl June 19, 2021, 1:52 p.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 html/cgi-bin/memory.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Adolf Belka June 20, 2021, 6:45 p.m. UTC | #1
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>

Tested-by: Adolf Belka <adolf.belka@ipfire.org>

On 19/06/2021 15:52, Stefan Schantl wrote:
> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
> ---
>   html/cgi-bin/memory.cgi | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/html/cgi-bin/memory.cgi b/html/cgi-bin/memory.cgi
> index dea7e3668..441b1d4e7 100644
> --- a/html/cgi-bin/memory.cgi
> +++ b/html/cgi-bin/memory.cgi
> @@ -56,7 +56,7 @@ if ( $querry[0] =~ "memory"){
>   	&Graphs::makegraphbox("memory.cgi","memory","day");
>   	&Header::closebox();
>   
> -	if (-f $mainsettings{'RRDLOG'}/collectd/localhost/swap) {
> +	if (-f "$mainsettings{'RRDLOG'}/collectd/localhost/swap") {
>   	    &Header::openbox('100%', 'center', "Swap $Lang::tr{'graph'}");
>   	    &Graphs::makegraphbox("memory.cgi","swap","day");
>   	    &Header::closebox();
  

Patch

diff --git a/html/cgi-bin/memory.cgi b/html/cgi-bin/memory.cgi
index dea7e3668..441b1d4e7 100644
--- a/html/cgi-bin/memory.cgi
+++ b/html/cgi-bin/memory.cgi
@@ -56,7 +56,7 @@  if ( $querry[0] =~ "memory"){
 	&Graphs::makegraphbox("memory.cgi","memory","day");
 	&Header::closebox();
 
-	if (-f $mainsettings{'RRDLOG'}/collectd/localhost/swap) {
+	if (-f "$mainsettings{'RRDLOG'}/collectd/localhost/swap") {
 	    &Header::openbox('100%', 'center', "Swap $Lang::tr{'graph'}");
 	    &Graphs::makegraphbox("memory.cgi","swap","day");
 	    &Header::closebox();