@lukebarone Seems it wasn’t fixed in rc-10, tom says it’s fixed in 11 though, follow here:
This is already known about and has already been fixed.
@Arrowhead-IT Scratch that, it totally worked after a restart. So if you go breaking your permissions just run the script posted and restart and violia!
Remoted in, and found that he is using a 32 bit OS. The value I was using to do the math was a function called intval which cannot do math beyond 32 bit scope (if the OS is 32 bit).
To fix, I just removed the intval function around the free/used space.