• Resolved caustinbak

    (@caustinbak)


    Hello,
    I installed your plugin on my website it is working fine, besides the point that it is not showing the real time cpu usages. I am running my server a raspberry pi with wordpress and only that plugin installed. How can i fix it so it shows me a percentage?

    • This topic was modified 8 years, 7 months ago by caustinbak.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author iSaumya

    (@isaumya)

    What do you mean by you are getting wrong CPU usage? Can you explain a bit more?

    Thread Starter caustinbak

    (@caustinbak)

    Here is a link to a screenshot I made. Hope this helps

    imgur-link

    Plugin Author iSaumya

    (@isaumya)

    Oh! I see. Well I guess this is due to come server config issue as to check the CPU load the follow shell command gets executed

    echo $((ps aux|awk 'NR > 0 { s +=$3 }; END {print s}'| cut -d . -f 1 / cat /proc/cpuinfo | grep cores | grep -o '[0-9]' | wc -l))
    

    and for some reason this command is not returning anything on your system.

    Thread Starter caustinbak

    (@caustinbak)

    I am using raspbian sketch. is it possible that it needs admin powers. that i have to put a SUDO command infront on the code. If this is the case were can i access the file to change it?

    Plugin Author iSaumya

    (@isaumya)

    first of all try running that code in your terminal and see if it works. Also that codes doesn’t need sudo.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘CPU usages unknown’ is closed to new replies.