Web lists-archives.com

Re: $ uptime: bad data in /proc/loadavg




Greetings, Brian Inglis!

> On 2017-05-12 20:44, Andrey Repin wrote:
>> Just a few days ago it worked, but now
>> $ uptime
>> bad data in /proc/loadavg
>> $ cat /proc/loadavg
>> 0,00 0,00 0,00 1/3

> Something is localizing output from /proc/loadavg
> - assume you're using ru locale?

Yes, sorry, was my afterthought too.

> Check if you also get it with uptime -p or uptime -s.

$ uptime -p
up 17 hours, 35 minutes

$ uptime -s
2017-05-13 01:23:39

$ locale.exe
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="en_US"
LC_ALL=

$ export LC_NUMERIC=en_US

$ uptime
 19:02:13 up 17:38,  0 users,  load average: 4.00, 4.00, 4.00

Thanks, I can live with it for the time being.
It's not mission-critical.


-- 
With best regards,
Andrey Repin
Saturday, May 13, 2017 19:00:31

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple