Congrats, you win that umm...Award? =P
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
alias vcmp.cpu {
var %ram = $round($calc($dll(ProcInfo.dll,GetRam,memory) / 1023),0), %ramfree = $round($calc($dll(ProcInfo.dll,GetRam,memoryavail) / 1023),0), %ram.p $dll(ProcInfo.dll,GetRam,p100use), %ram.pfree $dll(ProcInfo.dll,GetRam,p100avail)
var %ut.mir = $duration($calc($uptime(mirc)/1000),2), %ut.ser = $duration($calc($uptime(server)/1000),2), %ut.sys = $duration($calc($uptime(system)/1000),2)
var %cpu.proc = $dll(ProcInfo.dll,GetCpu,.), %cpu.mnu = $dll(ProcInfo.dll,GetCpuVendor,.) %cpu.speed = $dll(ProcInfo.dll,GetCpuSpeed,mhz), %cpu.use = $dll(ProcInfo.dll,GetCpuUsage,.)
vcmp.say Ram - Totall: %ram $+ MB $+ , Free: %ramfree $+ MB $+ , Free: %ram.pfree $+ %
vcmp.say Uptime - mIRC: %ut.mir $+ , System: %ut.sys
vcmp.say CPU - Type: $gettok(%cpu.mnu,1,32) $+ , Speed: $round($calc($gettok(%cpu.mnu,3,32) / 1000),2) $+ GHz $+ , Usage: %ram.p $+ %
}
elseif (!comp* iswm $2) || (!pmcomp* iswm $2) {
if (%timer.status) vcmp.say Error - This Command can only be used Once every 2 Seconds
else {
vcmp.cpu
set %timer.status 1
!timer 1 2 unset %timer.status
}
}