From: hadaq Date: Sat, 2 Sep 2017 18:19:28 +0000 (+0200) Subject: little things X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=ab7233c7922643fe81df419ba308af5893e11662;p=daqtools.git little things --- 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);