Use byte size in allocated tooltip
authorMilian Wolff <mail@milianw.de>
Fri, 28 Apr 2017 11:28:04 +0000 (13:28 +0200)
committerMilian Wolff <mail@milianw.de>
Fri, 28 Apr 2017 11:28:04 +0000 (13:28 +0200)
It was wrongly using the time twice.

BUG: 379221

src/analyze/gui/chartmodel.cpp

index 514859b..6ea0584 100644 (file)
@@ -131,7 +131,7 @@ QVariant ChartModel::data(const QModelIndex& index, int role) const
                 return i18n("<qt>%1 consumed in total after %2</qt>",
                             format.formatByteSize(cost, 1, KFormat::MetricBinaryDialect), time);
             case Allocated:
-                return i18n("<qt>%2 allocated in total after %2</qt>",
+                return i18n("<qt>%1 allocated in total after %2</qt>",
                             format.formatByteSize(cost, 1, KFormat::MetricBinaryDialect), time);
             }
         } else {