mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
fix occasionally random ordering for fail2ban (#388)
If
$j->canonical(1);
need another changes, please fix that.
I get this from: https://github.com/librenms/librenms-agent/pull/240
This commit is contained in:
@@ -157,7 +157,7 @@ sub stats{
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $j=JSON->new;
|
my $j=JSON->new;
|
||||||
|
$j->canonical(1);
|
||||||
if ( $_[0] ){
|
if ( $_[0] ){
|
||||||
$j->pretty(1);
|
$j->pretty(1);
|
||||||
return $j->encode( \%toReturn );
|
return $j->encode( \%toReturn );
|
||||||
|
|||||||
Reference in New Issue
Block a user