Skip to content

Commit

Permalink
GUI: do not display in GB, but in MB (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
decryp2kanon committed Jun 14, 2020
1 parent 856bb94 commit cba1049
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,10 @@ QString formatBytes(uint64_t bytes)
if(bytes < 1024 * 1024 * 1024)
return QString(QObject::tr("%1 MB")).arg(bytes / 1024 / 1024);

return QString(QObject::tr("%1 GB")).arg(bytes / 1024 / 1024 / 1024);
// FIXME.SUGAR
// Do not display in GB
// return QString(QObject::tr("%1 GB")).arg(bytes / 1024 / 1024 / 1024);
return QString(QObject::tr("%1 MB")).arg(bytes / 1024 / 1024);
}

qreal calculateIdealFontSize(int width, const QString& text, QFont font, qreal minPointSize, qreal font_size) {
Expand Down

0 comments on commit cba1049

Please sign in to comment.