Revision: 32989
http://sourceforge.net/p/opalvoip/code/32989
Author: rjongbloed
Date: 2014-10-15 12:05:17 +0000 (Wed, 15 Oct 2014)
Log Message:
-----------
Fixed System Total CPU times, part 2.
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 11:32:33 UTC (rev 32988)
+++ ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2014-10-15 12:05:17 UTC (rev 32989)
@@ -1092,7 +1092,7 @@
std::ifstream statfile("/proc/stat");
char dummy[10];
- unsigned user, nice, system, idle, iowait, irq, softirq, steal;
+ uint64_t 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|