Permalink
Browse files

Merge pull request #539 from diggit/master

Incorrect size descriptor used
  • Loading branch information...
2 parents 54fd60c + cbfebb5 commit 4be30d496185db2aa6b3848f15274871fab73b90 @kuzmas kuzmas committed Jan 20, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 libraries/razormount/razormount.cpp
@@ -42,15 +42,15 @@ QString RazorMountDevice::sizeToString(qulonglong size)
{
double n;
n = size / (1024.0 * 1024 * 1024);
- if (n > 0)
+ if (n >= 1.0)
return QObject::tr("%1 GB").arg(n, 0, 'f', 1);
n = size / (1024.0 * 1024);
- if (n > 0)
+ if (n >= 1.0)
return QObject::tr("%1 MB").arg(n, 0, 'f', 1);
n = size / (1024.0);
- if (n > 0)
+ if (n >= 1.0)
return QObject::tr("%1 KB").arg(n, 0, 'f', 1);
return QObject::tr("%1 B").arg(size);

0 comments on commit 4be30d4

Please sign in to comment.