From f5b3f9cc1df73669a177a0d2d0e631a9b0b3baf7 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Tue, 6 Aug 2024 12:21:19 +0300 Subject: [PATCH] Fix to use `os_type` for OS check https://github.com/webmin/webmin/commit/0ac51a83e9cce273a632d8c8ba1e9f599c6d0a34#r145024453 --- proc/proc-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc/proc-lib.pl b/proc/proc-lib.pl index 0c43d5db6..334f887e7 100755 --- a/proc/proc-lib.pl +++ b/proc/proc-lib.pl @@ -714,7 +714,7 @@ else { sub count_processes { my $process_count = 0; -if ($^O eq 'MSWin32') { +if ($gconfig{'os_type'} eq 'windows') { open(my $ps, '-|', 'tasklist /FO CSV') || return -1; while (my $line = <$ps>) { next if $. == 1; # Skip the header line