root@chip:/home/weewx# cat -A /proc/stat
cpu 8256954 0 664446 23822668 72 0 41973 0 0 0$
cpu0 8256954 0 664446 23822668 72 0 41973 0 0 0$
intr 107924152 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 54704033 0 0 0 53075891 7 4
140293 0 0 0 528 900 2492 0 3 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0$
ctxt 208690914$
btime 1472172597$
processes 23802$
procs_running 1$
procs_blocked 0$
softirq 24306222 64805 11788001 1 3304867 1090 0 5811895 0 0 3335563$
Aug 29 13:09:19 chip weewx[23767]: **** record =
self.collector.get_data(now_ts)
Aug 29 13:09:19 chip weewx[23767]: **** File
"/home/weewx/bin/user/cmon.py", line 475, in get_data
Aug 29 13:09:19 chip weewx[23767]: **** s =
self._readproc_line(tfile)
Aug 29 13:09:19 chip weewx[23767]: **** File
"/home/weewx/bin/user/cmon.py", line 372, in _readproc_line
Aug 29 13:09:19 chip weewx[23767]: **** info =
fp.readline().strip()
Aug 29 13:09:19 chip weewx[23767]: **** IOError: [Errno 22] Invalid
argument
Aug 29 13:09:19 chip weewx[23767]: **** Exiting.
@staticmethod
def _readproc_line(filename):
"""read single line proc file, return the string"""
info = ''
with open(filename) as fp:
#info = fp.read()
info = fp.readline().strip()
return info
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.