Skip to content

Commit

Permalink
Fix to use os_type for OS check
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Aug 6, 2024
1 parent 2405533 commit f5b3f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proc/proc-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ sub format_stime
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
Expand Down

0 comments on commit f5b3f9c

Please sign in to comment.