Fix locale for FreeBSD loadavg()

This commit is contained in:
zhmylove 2022-05-19 01:07:19 +03:00
parent 806a5382cc
commit 3251a25c5c

View file

@ -16080,7 +16080,7 @@ sub loadavg_freebsd
if ( ! defined $file ) {
eval {
$loadavg = `/sbin/sysctl vm.loadavg` ;
$loadavg = `LC_ALL=C /sbin/sysctl vm.loadavg` ;
#myprint( "LOADAVG FREEBSD: $loadavg\n" ) ;
} ;
if ( $EVAL_ERROR ) { myprint( "[$EVAL_ERROR]\n" ) ; return ; }