99999999) $b4 = ''; else if ($num > 9999999) $b4 = ''; if ($b4 != '') $af = ''; return $b4.$fmt.$af; } # function dockp($data, $user) { $pg = '

CKPool

'; $msg = msgEncode('stats', 'stats', array(), $user); $rep = sendsockreply('stats', $msg); if ($rep == false) $ans = array(); else $ans = repDecode($rep); $pg .= 'TotalRAM: '.stnum($ans['totalram']).'
'; $pg .= "\n"; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= "\n"; if ($ans['STATUS'] == 'ok') { $pg .= ''; $count = $ans['rows']; for ($i = 0; $i < $count; $i++) { if (($i % 2) == 0) $row = 'even'; else $row = 'odd'; $pg .= ""; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= "\n"; } $pg .= ''; } $pg .= "
NameInitialAllocatedIn StoreRAMRAM2Cull
'.$ans['name:'.$i].''.stnum($ans['initial:'.$i]).''.stnum($ans['allocated:'.$i]).''.stnum($ans['instore:'.$i]).''.stnum($ans['ram:'.$i]).''.stnum($ans['ram2:'.$i]).''.stnum($ans['cull:'.$i]).'
\n"; return $pg; } # function show_ckp($info, $page, $menu, $name, $user) { gopage($info, NULL, 'dockp', $page, $menu, $name, $user); } # ?>