[OE-core] [PATCH 01/11] buildstats: add system state sampling
Patrick Ohly
patrick.ohly at intel.com
Fri Dec 9 07:55:28 UTC 2016
On Fri, 2016-12-09 at 01:29 +0100, Andreas Oberritter wrote:
> Hi Patrick,
>
> On 28.11.2016 16:33, Patrick Ohly wrote:
> > + def sample(self, force):
> > + now = time.time()
> > + if (now - self.last > self.min_seconds) or force:
> > + for filename, output in self.proc_files:
> > + with open(os.path.join('/proc', filename), 'rb') as input:
> ^
> this fails with a backtrace if /proc/diskstats is not available, which
> may be the case in virtualized environments, e.g. Linux-VServer.
Thanks for pointing that out, I'll send a fix.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
More information about the Openembedded-core
mailing list