From 591b74d8de83288e8de317886c4c88de4a951b5e Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Tue, 2 Dec 2008 07:37:08 +0000 Subject: [PATCH] gTicks must be set in the constructor. cannot go back to previous version giving complaints in valgrind. git-svn-id: http://root.cern.ch/svn/root/trunk@26576 27541ba8-7e3a-0410-8455-c3a389f83636 --- core/base/src/TStopwatch.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/base/src/TStopwatch.cxx b/core/base/src/TStopwatch.cxx index f0f2a2970fc..220271b078d 100644 --- a/core/base/src/TStopwatch.cxx +++ b/core/base/src/TStopwatch.cxx @@ -41,8 +41,8 @@ TStopwatch::TStopwatch() // Create a stopwatch and start it. #ifdef R__UNIX - if (gTicks > 0) - gTicks = (Double_t)sysconf(_SC_CLK_TCK); + //if (!gTicks) gTicks = (Double_t)sysconf(_SC_CLK_TCK); + gTicks = (Double_t)sysconf(_SC_CLK_TCK); #endif Start(); -- GitLab