Fix to use os_type for OS check

0ac51a83e9 (r145024453)
This commit is contained in:
Ilia Ross
2024-08-06 12:21:19 +03:00
parent 24055330d3
commit f5b3f9cc1d

View File

@@ -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