head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2002.12.28.07.27.18; author swiergot; state Exp; branches; next 1.1; 1.1 date 2002.12.27.22.36.04; author swiergot; state Exp; branches; next ; desc @@ 1.2 log @- Enabled the longdouble patch and fixed to use proper format conversion. @ text @--- src/dctc_process.c.orig 2002-11-16 08:10:25.000000000 +0100 +++ src/dctc_process.c 2002-12-27 23:32:45.000000000 +0100 @@@@ -575,9 +575,9 @@@@ sprintf(buf,"%'d users (%'.2lfGB)",clst->rows,amount/(1024.0*1024.0*1024.0)); /* NO_PRINTF_LOCAL support added */ #else if( (amount/(1024.0*1024.0*1024.0)) > 1024.0) - sprintf(buf,"%d users (%.2lfTB)",clst->rows,amount/(1024.0*1024.0*1024.0*1024.0)); + sprintf(buf,"%d users (%.2fTB)",clst->rows,amount/(1024.0*1024.0*1024.0*1024.0)); else - sprintf(buf,"%d users (%.2lfGB)",clst->rows,amount/(1024.0*1024.0*1024.0)); + sprintf(buf,"%d users (%.2fGB)",clst->rows,amount/(1024.0*1024.0*1024.0)); #endif w=get_widget_by_widget_name("users_info_label"); if(w==NULL) @ 1.1 log @- Added a longdouble patch to fix an invalid long double format conversion. @ text @d8 1 a8 1 + sprintf(buf,"%d users (%.2LfTB)",clst->rows,amount/(1024.0*1024.0*1024.0*1024.0)); d11 1 a11 1 + sprintf(buf,"%d users (%.2LfGB)",clst->rows,amount/(1024.0*1024.0*1024.0)); @ .