X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FStatistics.cc;h=a9cb32581f89c88a08345769b7e6d6b35dd54d16;hb=e7448a557d83dae40eb404c21b0e858ee24fad4b;hp=9129c17c0c6d8bc6439f7736c6583b0b45e70e46;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Utils/Statistics.cc b/senf/Utils/Statistics.cc index 9129c17..a9cb325 100644 --- a/senf/Utils/Statistics.cc +++ b/senf/Utils/Statistics.cc @@ -86,18 +86,18 @@ senf::StatisticsBase::output(unsigned n) char *format_eng( float f) { static char buf[16]; - if( f > 0){ + if (f > 0) { int n = 0; - while( f >= 1000.0f){ + while( f >= 1000.0f) { f /= 1000.f; n+=3; } sprintf( buf, " %3.2fe%+03d", f, n); } - else if( f < 0){ + else if (f < 0) { int n = 0; - while( f <= -1000.0f){ + while( f <= -1000.0f) { f *= 1000.f; n+=3; }