From ab7233c7922643fe81df419ba308af5893e11662 Mon Sep 17 00:00:00 2001 From: hadaq Date: Sat, 2 Sep 2017 20:19:28 +0200 Subject: [PATCH] little things --- users/gsi_dirc/check_tot.cc | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/users/gsi_dirc/check_tot.cc b/users/gsi_dirc/check_tot.cc index 4ff019b..74841a5 100644 --- a/users/gsi_dirc/check_tot.cc +++ b/users/gsi_dirc/check_tot.cc @@ -49,27 +49,26 @@ int main(int argc, char* argv[]) if (bad+good!=0) { cout<<" TDC "<=2.0) + if(float(bad)/(bad+good)*100>5.0) { - cout<<"\033[1;31m"; - cout.precision(1); - cout.fill (' '); - cout.width(5); - cout<3.0) + { + cout<<"\033[1;33m"; } else { - cout<<"\033[0;32m"; - cout.precision(1); + cout<<"\033[1;32m"; + } + + cout.precision(1); cout.fill (' '); cout.width(5); cout<=2.0) + if (float(bad_sum)/(bad_sum+good_sum)*100>5.0) { cout<<"\033[1;31m"; } + else if(float(bad)/(bad+good)*100>3.0) + { + cout<<"\033[1;33m"; + } else { - cout<<"\033[0;32m"; + cout<<"\033[1;32m"; } - cout.precision(1); cout.fill (' '); cout.width(5); -- 2.43.0