Skip to content

Commit

Permalink
remove the min bit from since (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
VVelox authored Jun 15, 2024
1 parent e447b92 commit 843844f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snmp/php-fpm
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ my $to_return = {
"max listen queue" => 0,
"slow requests" => 0,
"total processes" => 0,
'start since min' => undef,
'start since' => undef,
},
},
version => 1,
Expand Down Expand Up @@ -242,10 +242,10 @@ foreach my $item (@pools) {
if ( defined( $to_return->{data}{pools}{$item}{'start since'} )
&& $to_return->{data}{pools}{$item}{'start since'} =~ /^\d+$/ )
{
if ( !defined( $to_return->{data}{totals}{'start since min'} )
|| $to_return->{data}{pools}{$item}{'start since'} < $to_return->{data}{totals}{'start since min'} )
if ( !defined( $to_return->{data}{totals}{'start since'} )
|| $to_return->{data}{pools}{$item}{'start since'} < $to_return->{data}{totals}{'start since'} )
{
$to_return->{data}{totals}{'start since min'} = $to_return->{data}{pools}{$item}{'start since'};
$to_return->{data}{totals}{'start since'} = $to_return->{data}{pools}{$item}{'start since'};
}
}
} ## end else [ if ($@) ]
Expand Down

0 comments on commit 843844f

Please sign in to comment.