don't overflow, it's signed... also, an EiB of disk storage ought to be big

enough for everyone.. for the next months, at least.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1129273
This commit is contained in:
Volker Lanz 2010-05-21 20:20:39 +00:00
parent 90dc6b318b
commit 0422bfcc15
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@
#include <ktempdir.h>
#include <klocale.h>
#include <kdebug.h>
#include <unistd.h>
@ -91,7 +92,7 @@ namespace FS
qint64 xfs::maxCapacity() const
{
return 8 * Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
return Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
}
qint64 xfs::readUsedCapacity(const QString& deviceNode) const