From: Arnaud Giersch Date: Tue, 25 Jan 2011 11:00:43 +0000 (+0100) Subject: Improve warning message. X-Git-Tag: v0.1~188^2~11 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/61856fb5422e392a34106b1c698cf5d67a9647b4?ds=inline;hp=-c Improve warning message. --- 61856fb5422e392a34106b1c698cf5d67a9647b4 diff --git a/main.cpp b/main.cpp index ccd11bd..4e8864c 100644 --- a/main.cpp +++ b/main.cpp @@ -65,7 +65,7 @@ static void check_for_lost_load() double lost_ratio = 100.0 * lost / total_init; if (lost_ratio < -opt::load_ratio_threshold) CRITICAL2("Gained load at exit! %g (%g%%) <============", - lost, lost_ratio); + -lost, -lost_ratio); else if (lost_ratio > opt::load_ratio_threshold) CRITICAL2("Lost load at exit! %g (%g%%) <============", lost, lost_ratio);