if ( (current_time % 1800) == 0 )
{
sprintf(buf, "%.24s: %d players", ctime(¤t_time), num_descriptors);
append_to_file(USAGE_FILE, buf);
sprintf(buf, "%.24s: %dptn %dpll %dsc %dbr %d global loot",
ctime(¤t_time),
sysdata.upotion_val,
sysdata.upill_val,
sysdata.scribed_used,
sysdata.brewed_used,
sysdata.global_looted );
append_to_file( ECONOMY_FILE, buf );
}
http://www.biyg.org/graphs/line.php
First off, does anyone have any general suggestions on how to improve it?
Second… the graph will eventually reach a point where the php memory limit is hit, and the graph will no longer be able to be generated. Does anyone have any ideas what to do about that, besides increasing the memory limit?