Vanilla List Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.global problems on continuum cutover



I want someone to confirm that I've found the source of this problem.

Today we moved continuum's server to another box.  As a result of the
usual "tools/scores A" to "tools/newscores" process, the timeprod
field in .global is wrong and the server believes it has been up for
only a short time.

As a result, statistics are over- and under-emphasised.  All per task
ratios are higher than they should be if they were above 1.00, and
lower than they should be if they were below 1.00.

It seems the problem is due to a mismatch in data type used in the
printf() and scanf() calls in scores.c:335 and newscores.c:74.

In scores.c:335 we have "%10lf" to write out the "double timeprod".
In newscores.c:74 we have "%10ld" to read in the value.

Would it be correct to say this should be %10lf as well?

-- 
James Cameron                                      (quozl@us.netrek.org)

Linux, Firewalls, OpenVMS, Software Engineering, CGI, HTTP, X, C, FORTH,
COBOL, BASIC, DCL, csh, bash, ksh, sh, Electronics, Microcontrollers,
Disability Engineering, Netrek, Bicycles, Pedant, Farming, Home Control,
Remote Area Power, Greek Scholar, Tenor Vocalist, Church Sound, Husband.

"Specialisation is for insects." -- Robert Heinlein.