From d2e2ed34caeb4977c2b25cf3132402b2103a1b92 Mon Sep 17 00:00:00 2001 From: Fons Rademakers <Fons.Rademakers@cern.ch> Date: Wed, 1 Nov 2006 14:09:08 +0000 Subject: [PATCH] sleep only 100ms instead of 1s to get current CPU load. git-svn-id: http://root.cern.ch/svn/root/trunk@16663 27541ba8-7e3a-0410-8455-c3a389f83636 --- unix/src/TUnixSystem.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unix/src/TUnixSystem.cxx b/unix/src/TUnixSystem.cxx index 346f48531b5..9b0ecf47b36 100644 --- a/unix/src/TUnixSystem.cxx +++ b/unix/src/TUnixSystem.cxx @@ -1,4 +1,4 @@ -// @(#)root/unix:$Name: $:$Id: TUnixSystem.cxx,v 1.164 2006/10/23 16:39:32 rdm Exp $ +// @(#)root/unix:$Name: $:$Id: TUnixSystem.cxx,v 1.165 2006/10/24 14:42:04 rdm Exp $ // Author: Fons Rademakers 15/09/95 /************************************************************************* @@ -4295,7 +4295,7 @@ static void GetDarwinCpuInfo(CpuInfo_t *cpuinfo) Long_t cpu_ticks1[4], cpu_ticks2[4]; ReadDarwinCpu(cpu_ticks1); - gSystem->Sleep(1000); + gSystem->Sleep(100); ReadDarwinCpu(cpu_ticks2); Long_t userticks = (cpu_ticks2[0] + cpu_ticks2[3]) - @@ -4525,7 +4525,7 @@ static void GetLinuxCpuInfo(CpuInfo_t *cpuinfo) Long_t cpu_ticks1[4], cpu_ticks2[4]; ReadLinuxCpu(cpu_ticks1); - gSystem->Sleep(1000); + gSystem->Sleep(100); ReadLinuxCpu(cpu_ticks2); Long_t userticks = (cpu_ticks2[0] + cpu_ticks2[3]) - -- GitLab