From 8028111912c89c004ecb096acef42ff260fc6546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 31 Aug 2009 09:58:25 +0000 Subject: [PATCH] Size ContentSize() seems to be unreliable for read-only media, and also since we may allow initializing partitions from within the Installer, it's better to use Size() for now. Should fix the CD install source to display as 800 +some Bytes. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32848 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/installer/WorkerThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/installer/WorkerThread.cpp b/src/apps/installer/WorkerThread.cpp index 04f48c00d1..2161afc7f6 100644 --- a/src/apps/installer/WorkerThread.cpp +++ b/src/apps/installer/WorkerThread.cpp @@ -466,7 +466,7 @@ make_partition_label(BPartition* partition, char* label, char* menuLabel, bool showContentType) { char size[15]; - SizeAsString(partition->ContentSize(), size); + SizeAsString(partition->Size(), size); BPath path; partition->GetPath(&path);