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:
parent
90dc6b318b
commit
0422bfcc15
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue