From 68d67ea7128441d7243c25fd2ed2b4d2fd6e5a5b Mon Sep 17 00:00:00 2001 From: malaterre Date: Fri, 10 Jun 2005 14:02:29 +0000 Subject: [PATCH] COMP: why the heck did they used 'lf' for printing a double ? --- src/gdcmjpegls/Decoder/decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.46.1