Revision: 32987
http://sourceforge.net/p/opalvoip/code/32987
Author: rjongbloed
Date: 2014-10-15 09:42:23 +0000 (Wed, 15 Oct 2014)
Log Message:
-----------
Better names for process and system CPU times.
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:29:31 UTC (rev 32986)
+++ ptlib/trunk/src/ptlib/unix/tlibthrd.cxx 2014-10-15 09:42:23 UTC (rev 32987)
@@ -1078,7 +1078,7 @@
bool PProcess::GetProcessTimes(Times & times) const
{
- times.m_name = GetName();
+ times.m_name = "Process Total";
times.m_real = PTime() - GetStartTime();
return InternalGetTimes("/proc/self/stat", times);
}
@@ -1086,7 +1086,7 @@
bool PProcess::GetSystemTimes(Times & times)
{
- times.m_name = "SYSTEM";
+ times.m_name = "System Total";
for (int retry = 0; retry < 3; ++retry) {
std::ifstream statfile("/proc/stat");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|