Fix on Yosemite

On my MBP with Yosemite totalBytes didn't work and I had to adjust it like that to make it work again.