Fixes #2718: correct condition for disk storage computation