From f867935ef75425dbae61361f75dfe746adfb9b25 Mon Sep 17 00:00:00 2001 From: Chris Nehren <cnehren@omniti.com> Date: Wed, 19 Jun 2013 13:35:06 -0400 Subject: [PATCH] Put some spacing in an if block because I kept reading the code as $commhist{$command}->$now which is distinctly not what it actually is. --- lib/Resmon/ExtComm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resmon/ExtComm.pm b/lib/Resmon/ExtComm.pm index d75c24f..b01881d 100755 --- a/lib/Resmon/ExtComm.pm +++ b/lib/Resmon/ExtComm.pm @@ -16,7 +16,7 @@ sub cache_command { my $command = join(" ", @command); my $now = time; - if(defined($commhist{$command}) && $commhist{$command}>$now) { + if(defined $commhist{$command} && $commhist{$command} > $now) { return $commcache{$command}; } $commcache{$command} = run_command(@command); -- GitLab