cosmetic fix to agents.status message

Eric Soroos eric-ul at soroos.net
Thu May 29 16:42:58 PDT 2003


A little while ago, I mentioned that I had a cosmetic fix to 
agents.statusMessage for servers with between 2 and 4 gigs of memory 
available to Frontier.  This is the part that I changed:

local (s = productString + " " + Frontier.version () + ": " + 
string.megabyteString (memAvail ()) + " free, " + string.timeString () 
+ "; ")

to this:

local {
	mem = memAvail();
	memStr = ""};
if mem < 0 { // probable overflow
	mem = (4.0*1024.0*1024.0*1024.0) + double(mem);
	memStr = string.gigabyteString(mem)}
else {
	memStr = string.megabyteString(mem)};
local (s = productString + " " + Frontier.version () + ": " + memStr+ " 
free, " + string.timeString () + "; ")


eric




More information about the Frontier-Users mailing list