Revision: 32988
http://sourceforge.net/p/opalvoip/code/32988
Author: rjongbloed
Date: 2014-10-15 11:32:33 +0000 (Wed, 15 Oct 2014)
Log Message:
-----------
FIxed Linux system CPU
Modified Paths:
--------------
ptlib/trunk/src/ptlib/unix/tlibthrd.cxx
Modified: ptlib/trunk/src/ptlib/unix/tlibthrd.cxx
===================================================================
--- ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2014-10-15 09:42:23 UTC (rev 32987)
+++ ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2014-10-15 11:32:33 UTC (rev 32988)
@@ -1092,8 +1092,8 @@
std::ifstream statfile("/proc/stat");
char dummy[10];
- unsigned user, nice, system, idle, iowait, irq, softirq, steal, guest, guest_nice;
- statfile >> dummy >> user >> nice >> system >> idle >> iowait >> irq >> softirq >> steal >> guest >> guest_nice;
+ unsigned user, nice, system, idle, iowait, irq, softirq, steal;
+ statfile >> dummy >> user >> nice >> system >> idle >> iowait >> irq >> softirq >> steal;
if (statfile.good()) {
times.m_kernel = jiffies_to_msecs(system);
times.m_user = jiffies_to_msecs(user);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|