Graal Forums  

Go Back   Graal Forums > PlayerWorlds > PlayerWorlds Main Forum
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-01-2013, 10:00 PM
dylan dylan is offline
AGT
Join Date: Jul 2012
Location: United States
Posts: 60
dylan has a spectacular aura about
Quote:
Originally Posted by DustyPorViva View Post
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()*100int((getprocessuptime()/86400) / 0.05) * 0.05);
        break;
        }
    }

Edit:
So yes, it's pulling CPU usage from server.
__________________

<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.