![]() |
#5
|
|||
|
|||
![]()
Ah right i know what ya saying.....
Perhaps for my server i need some slightly different code.... This is the microstats hack pulls the serverload no probs... Code:
if ($loadavg = @file_get_contents("/proc/loadavg")) { $regs = explode(" ",$loadavg); $serverload = ' [Server Loads: <b>' . $regs[0] .'</b> ' . $regs[1] . ' : ' . $regs[2] . ']'; }elseif ($stats=@exec('uptime')) { preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/',$stats,$regs); $serverload = ' [Server Loads: <b>' . $regs[1] .'</b> ' . $regs[2] . ' : ' . $regs[3] . ']'; }elseif ($loadavg = @`sysctl vm.loadavg|cut -d" " -f3-5`) { $regs = explode(" ",$loadavg); $serverload = ' [Server Loads: <b>' . $regs[0] .'</b> ' . $regs[1] . ' : ' . $regs[2] . ']'; } $debughtml .= iif($_TEMPLATEQUERIES, ' (<b>' . sizeof($_TEMPLATEQUERIES) . '</b> queries for uncached templates)', '') . "$serverload"; Tis works fine...but mine a few posts back just wont have it.. I have tried to incorperate some of the microstats code but i dont know what im doing lol |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|