summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehardwaredevices.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2013-04-26 16:53:54 -0500
committerDarrell Anderson <[email protected]>2013-04-26 16:53:54 -0500
commit26a59d1ea793b04d202c2c8e7fc845eac35b529c (patch)
tree9f6b44f6248821769b50bc91c5e9086cccfed24a /tdecore/tdehardwaredevices.cpp
parentad34c5952b9c9262354a10a965a242858e7e1e76 (diff)
parentcac8dcdd2baad264974aa158283458569c832060 (diff)
downloadtdelibs-26a59d1ea793b04d202c2c8e7fc845eac35b529c.tar.gz
tdelibs-26a59d1ea793b04d202c2c8e7fc845eac35b529c.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'tdecore/tdehardwaredevices.cpp')
-rw-r--r--tdecore/tdehardwaredevices.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tdecore/tdehardwaredevices.cpp b/tdecore/tdehardwaredevices.cpp
index cce10f21a..8cf86d721 100644
--- a/tdecore/tdehardwaredevices.cpp
+++ b/tdecore/tdehardwaredevices.cpp
@@ -859,7 +859,7 @@ TQPixmap TDEStorageDevice::icon(TDEIcon::StdSizes size) {
return ret;
}
-unsigned long TDEStorageDevice::deviceSize() {
+unsigned long long TDEStorageDevice::deviceSize() {
TQString bsnodename = systemPath();
bsnodename.append("/queue/physical_block_size");
TQFile bsfile( bsnodename );
@@ -870,7 +870,7 @@ unsigned long TDEStorageDevice::deviceSize() {
bsfile.close();
}
else {
- // Drat, I can't get a gauranteed block size. Assume a block size of 512, as everything I have read indicates that /sys/block/<dev>/size is given in terms of a 512 byte block...
+ // Drat, I can't get a guaranteed block size. Assume a block size of 512, as everything I have read indicates that /sys/block/<dev>/size is given in terms of a 512 byte block...
blocksize = "512";
}
@@ -884,7 +884,7 @@ unsigned long TDEStorageDevice::deviceSize() {
dsfile.close();
}
- return (blocksize.toULong()*devicesize.toULong());
+ return ((unsigned long long)blocksize.toULong()*(unsigned long long)devicesize.toULong());
}
TQString TDEStorageDevice::deviceFriendlySize() {