From 145f239f4bb3d47917e011a331458098fb19e493 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Tue, 28 Jun 2022 15:27:25 -0400 Subject: [PATCH] Int comparison typo --- thinkpad/pow.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/thinkpad/pow.pl b/thinkpad/pow.pl index 57ac9eb..3c7b0fb 100755 --- a/thinkpad/pow.pl +++ b/thinkpad/pow.pl @@ -101,15 +101,15 @@ if ($bar) { if ($powref->{AC}->{Status} eq "Plugged-In") { $class = 'charging'; $output .= ""; - } elsif ($powref->{Total}->{Percentage} le 10) { + } elsif ($powref->{Total}->{Percentage} <= 10) { $class = 'critical'; $output .= ""; - } elsif ($powref->{Total}->{Percentage} le 35) { + } elsif ($powref->{Total}->{Percentage} <= 35) { $class = 'low'; $output .= ""; - } elsif ($powref->{Total}->{Percentage} le 60) { + } elsif ($powref->{Total}->{Percentage} <= 60) { $output .= ""; - } elsif ($powref->{Total}->{Percentage} le 85) { + } elsif ($powref->{Total}->{Percentage} <= 85) { $output .= ""; } else { $output .= "";