From e25b6aa78479d86af55e88c08b4a7e7da74d9ed4 Mon Sep 17 00:00:00 2001 From: Chantara Tith Date: Sat, 23 Jul 2016 19:30:29 +0700 Subject: [PATCH] Payload offset return in byte size instead of sector number. --- src/gui/infopane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/infopane.cpp b/src/gui/infopane.cpp index 0a9c705..f9ca4c1 100644 --- a/src/gui/infopane.cpp +++ b/src/gui/infopane.cpp @@ -123,7 +123,7 @@ void InfoPane::showPartition(Qt::DockWidgetArea area, const Partition& p) createLabels(i18nc("@label partition", "Cipher mode:"), luksFs->getCipherMode(deviceNode), cols(area), x, y); createLabels(i18nc("@label partition", "Hash:"), luksFs->getHashName(deviceNode), cols(area), x, y); createLabels(i18nc("@label partition", "Key size:"), QString::number(luksFs->getKeySize(deviceNode)), cols(area), x, y); - createLabels(i18nc("@label partition", "Payload offset:"), QString::number(luksFs->getPayloadOffset(deviceNode)), cols(area), x, y); + createLabels(i18nc("@label partition", "Payload offset:"), Capacity::formatByteSize(luksFs->getPayloadOffset(deviceNode)), cols(area), x, y); createLabels(i18nc("@label partition", "First sector:"), QLocale().toString(p.firstSector()), cols(area), x, y); createLabels(i18nc("@label partition", "Last sector:"), QLocale().toString(p.lastSector()), cols(area), x, y); createLabels(i18nc("@label partition", "Number of sectors:"), QLocale().toString(p.length()), cols(area), x, y);