From: malaterre Date: Fri, 10 Jun 2005 14:02:29 +0000 (+0000) Subject: COMP: why the heck did they used 'lf' for printing a double ? X-Git-Tag: Version1.2.bp~541 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=68d67ea7128441d7243c25fd2ed2b4d2fd6e5a5b;p=gdcm.git COMP: why the heck did they used 'lf' for printing a double ? --- diff --git a/src/gdcmjpegls/Decoder/decoder.c b/src/gdcmjpegls/Decoder/decoder.c index 16a88c00..b3d19029 100644 --- a/src/gdcmjpegls/Decoder/decoder.c +++ b/src/gdcmjpegls/Decoder/decoder.c @@ -1465,9 +1465,9 @@ int main (int argc, char *argv[]) { t1 = get_utime(); - fprintf(msgfile,"Total bits in: %ld Symbols out: %ld %5.3lf bps\n", + fprintf(msgfile,"Total bits in: %ld Symbols out: %ld %5.3f bps\n", tot_in,tot_out,tot_in/(double)tot_out); - fprintf(msgfile,"Time = %1.3lf secs : %1.0lf KSymbols/sec\n",t1-t0, + fprintf(msgfile,"Time = %1.3f secs : %1.0f KSymbols/sec\n",t1-t0, (tot_out)/(1024*(t1-t0))); if ( found_EOF )