Quote:
Originally Posted by DustyPorViva
Where are you getting this CPU usage from? Looks like it's from your PC, in which it doesn't reflect the server at all? I'm confused.
|
It's a custom onRCChat() command. Checks if the chat is /npccpu then gives that stat.
PHP Code:
function onRCChat() {
switch (params[0]) {
case "cpu": {
printf("CPU Usage: %i%%, Process Uptime: %f days",getprocesscpuusage()*100, int((getprocessuptime()/86400) / 0.05) * 0.05);
break;
}
}
}
Edit:
So yes, it's pulling CPU usage from server.