mIRC Homepage
Posted By: Pariah Hardrive Info - 08/05/05 01:51 PM
ok, im really no good at math, so i could use a little help if any of you have a second. im trying to turn $bytes($calc($disk(1).size - $disk(1).free),g3).suf into the used percentage of the drive.
Posted By: Kelder Re: Hardrive Info - 08/05/05 02:02 PM

% used = bytes used / bytes total * 100%

$round( $calc( ($disk(1).size - $disk(1).free) / $disk(1).size * 100))


Do try to work on your math, you'll need it for sales season grin
Posted By: Pariah Re: Hardrive Info - 08/05/05 02:10 PM
ahha so thats how its done laugh
so i guess $round($calc(($disk(1).free / $disk(1).size) * 100),2) would return the free percentage? hell i actually learned something today, thanks Kelder laugh
© mIRC Discussion Forums