$calc() % - 24/04/09 06:03 PM
How can i return free in prosent from the code below? been trying a while, but can't get it right, it return 340%, and that is apparently wrong.
Code:
alias diskz { var %to = $bytes($diskz_(total),3).suf var %ff = $bytes($diskz_(free),3).suf echo -a -> Total: $bytes($diskz_(total),3).suf - Free: $bytes($diskz_(free),3).suf $+($chr(40),$round($calc(%ff / %to *100),1),$chr(37),$chr(41))) }