mIRC Home    About    Download    Register    News    Help

Print Thread
#119650 08/05/05 01:51 PM
Joined: Mar 2005
Posts: 46
P
Pariah Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 46
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.

#119651 08/05/05 02:02 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701

% 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

#119652 08/05/05 02:10 PM
Joined: Mar 2005
Posts: 46
P
Pariah Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 46
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


Link Copied to Clipboard