From 401af0338db165a0c9346dbd70a5ee45187737a4 Mon Sep 17 00:00:00 2001 From: Schabau Date: Fri, 12 Jan 2024 18:54:40 +0100 Subject: [PATCH 1/2] Update zmstats.pl.in Debian compatibility issue --- scripts/zmstats.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/zmstats.pl.in b/scripts/zmstats.pl.in index 0f2e1406d..0764f21c0 100644 --- a/scripts/zmstats.pl.in +++ b/scripts/zmstats.pl.in @@ -61,7 +61,7 @@ while (!$zm_terminate) { } # Get CPU utilization percentages - my $top_output = `top -b -n 1 | grep "^%Cpu(s)" | awk '{print \$2, \$4}'`; + my $top_output = `top -b -n 1 | grep -i "^%Cpu(s)" | awk '{print \$2, \$4}'`; my ($user_utilization, $system_utilization) = split(/ /, $top_output); $user_utilization =~ s/[^\d\.]//g; $system_utilization =~ s/[^\d\.]//g; From 51fe7fc22beb5618acfca6362d52b465a4536738 Mon Sep 17 00:00:00 2001 From: Schabau Date: Fri, 12 Jan 2024 19:13:12 +0100 Subject: [PATCH 2/2] Revert "Update zmstats.pl.in" --- scripts/zmstats.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/zmstats.pl.in b/scripts/zmstats.pl.in index 0764f21c0..0f2e1406d 100644 --- a/scripts/zmstats.pl.in +++ b/scripts/zmstats.pl.in @@ -61,7 +61,7 @@ while (!$zm_terminate) { } # Get CPU utilization percentages - my $top_output = `top -b -n 1 | grep -i "^%Cpu(s)" | awk '{print \$2, \$4}'`; + my $top_output = `top -b -n 1 | grep "^%Cpu(s)" | awk '{print \$2, \$4}'`; my ($user_utilization, $system_utilization) = split(/ /, $top_output); $user_utilization =~ s/[^\d\.]//g; $system_utilization =~ s/[^\d\.]//g;