Skip to content
Browse files

Update libraries/razormount/razormount.cpp

Incorrect size descriptor used
  • Loading branch information...
1 parent 54fd60c commit cbfebb5725f0c51f69f7ca7037bdce4564cd9f20 @diggit diggit committed Jan 20, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 libraries/razormount/razormount.cpp
View
6 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 cbfebb5

Please sign in to comment.
Something went wrong with that request. Please try again.