From e182a06906da968d9677f740f5156588e0da7c5d Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 15 Jan 2013 21:51:14 +0100 Subject: Fixed a few log messages in load modules Signed-off-by: David Sommerseth --- rteval/modules/loads/hackbench.py | 4 ++-- rteval/modules/loads/kcompile.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rteval/modules/loads/hackbench.py b/rteval/modules/loads/hackbench.py index 53c4739..6460bb3 100644 --- a/rteval/modules/loads/hackbench.py +++ b/rteval/modules/loads/hackbench.py @@ -49,7 +49,7 @@ class Hackbench(CommandLineLoad): if ratio >= 0.75: mult = float(self._cfg.setdefault('jobspercore', 2)) else: - self._log(Log.INFO, "hackbench: low memory system (%f GB/core)! Not running\n" % ratio) + self._log(Log.INFO, "Low memory system (%f GB/core)! Not running" % ratio) mult = 0 self._donotrun = True @@ -94,7 +94,7 @@ class Hackbench(CommandLineLoad): raise e # Catch out-of-memory errors and wait a bit to (hopefully) # ease memory pressure - self._log(Log.DEBUG, "hackbench: %s, sleeping for %f seconds" % (e.strerror, self.__err_sleep)) + self._log(Log.DEBUG, "ERROR: %s, sleeping for %f seconds" % (e.strerror, self.__err_sleep)) time.sleep(self.__err_sleep) if self.__err_sleep < 60.0: self.__err_sleep *= 2.0 diff --git a/rteval/modules/loads/kcompile.py b/rteval/modules/loads/kcompile.py index 2aa3eb5..663917f 100644 --- a/rteval/modules/loads/kcompile.py +++ b/rteval/modules/loads/kcompile.py @@ -122,7 +122,7 @@ class Kcompile(CommandLineLoad): if ratio > 1.0: njobs = self.num_cpus * mult else: - self._log(Log.DEBUG, "low memory system (%f GB/core)! Dropping jobs to one per core\n" % ratio) + self._log(Log.DEBUG, "Low memory system (%f GB/core)! Dropping jobs to one per core" % ratio) njobs = self.num_cpus return njobs -- cgit