From 843844f86cdfedd4b532db8cf5880ea4aa157a55 Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Sat, 15 Jun 2024 09:38:34 -0500 Subject: [PATCH] remove the min bit from since (#528) --- snmp/php-fpm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snmp/php-fpm b/snmp/php-fpm index 0510b8b6d..20ec9897c 100755 --- a/snmp/php-fpm +++ b/snmp/php-fpm @@ -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, @@ -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 ($@) ]