Hi, In message <_A3400@delegate-en.ML_> on 07/15/06(03:45:27) you Martin Papadopoulos <payeabdyi-jmfhzl5r63vw.ml@delegate.org> wrote: |on the stats page i get very strange load-average results : | |Version: 9.2.3-pre13 |current-time: 14/Jul/2006:20:43:33 +0100 |server-start: 14/Jul/2006:20:43:11 +0100 |server-count: 16 |server-alive: 15 |service-done: 0 |load_average: 222520201273897680896.00 (222520201273897680896.0 1725848803769234499179420126373762645795053635590606192086887799792685170381058686711145584421313455819588546513149681782768877123800144421787797388471561017640178609262215806199175712121195551693340120080164121869051920610936973051733596962816.0 14318502163418952452548265997113154598521762800710375059172891719258634616231515568263238492606753515342028613530742528100202734512362050225144281452280443679879742067064917509397075945196655281782004046685972463616.0) RPM | |sometime the load_average shows only 0.0 Hmm... if you don't have another problem in the time-stamp in LOGFILE, which should be made via the path: sprintf() -> Xsprintf() -> svnprintf() it might be because a floating value is not passed via the path in this case: Sprintf() -> Xsprintf() -> svnprintf() and might be fixed with the enclosed patch. On 06/27/06(00:48) I wrote in <_A3334@delegate-en.ML_> |Once I saw such long output from printf("%f") in OSF/1, a broken |long value of "load average" in "http://your-delegate/-/" |It was fixed by using svnprintf() instread of snprintf() in "ystring.h" |and I've thought it should be applied to any platform where it's |available, from the viewpoint of the performance. Cheers, Yutaka -- 9 9 Yutaka Sato <pfqcabdyi-jmfhzl5r63vw.ml@delegate.org> http://delegate.org/y.sato/ ( ~ ) National Institute of Advanced Industrial Science and Technology _< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan Do the more with the less -- B. Fuller *** ../arc/delegate9.2.3-pre13/src/svstat.c Thu May 25 02:52:33 2006 --- src/svstat.c Sat Jul 15 05:00:16 2006 *************** *** 408,415 **** --- 408,419 ---- loadv[0] = getLoadStat(ST_ACC,now,1); loadv[1] = getLoadStat(ST_ACC,now,5) / 5; loadv[2] = getLoadStat(ST_ACC,now,15) / 15; + /* sp = Sprintf(AVStr(sp),"%3.1f %3.1f %3.1f", + */ + sprintf(sp,"%3.1f %3.1f %3.1f", loadv[0],loadv[1],loadv[2]); + sp += strlen(sp); break; case 'L': /* *************** *** 420,426 **** --- 424,434 ---- if( elp <= 0 ) elp = 1; loadv[0] = done / (elp/60.0); + /* sp = Sprintf(AVStr(sp),"%4.2f",loadv[0]); + */ + sprintf(sp,"%4.2f",loadv[0]); + sp += strlen(sp); break; case 'T': switch( *fp ){