[PC-BSD Commits] r2583 - pcbsd/trunk/PCInstall

svn at pcbsd.org svn at pcbsd.org
Tue Aug 12 12:07:24 PDT 2008


Author: kris
Date: 2008-08-12 12:07:24 -0700 (Tue, 12 Aug 2008)
New Revision: 2583

Modified:
   pcbsd/trunk/PCInstall/pcinstall.cpp
Log:

Updated PCInstall to determine the total MB size of a disk from the values
in the fdisk output, do NOT rely on dmesg output, which may not contain a MB
value 100% of the time.



Modified: pcbsd/trunk/PCInstall/pcinstall.cpp
===================================================================
--- pcbsd/trunk/PCInstall/pcinstall.cpp	2008-08-12 18:51:43 UTC (rev 2582)
+++ pcbsd/trunk/PCInstall/pcinstall.cpp	2008-08-12 19:07:24 UTC (rev 2583)
@@ -863,9 +863,11 @@
 	
 	
 	// Now check for any additional free space on this drive
-	tmp = listDriveBox->currentText();
-	tmp.remove(0, tmp.find(" ") + 1);
-	tmp.truncate(tmp.find("MB"));
+        // KPM 8-12-08, change method to determine size of disk
+	//tmp = listDriveBox->currentText();
+	//tmp.remove(0, tmp.find(" ") + 1);
+	//tmp.truncate(tmp.find("MB"));
+        tmp = BlocksToMB(TotalDriveBlocks);
 	TotalDriveMB = tmp.toLongLong();
 	//QMessageBox::warning( this, "Msg",  "Drive MB: " + tmp , "Retry", "Quit", 0, 0, 1 );
 	



More information about the Commits mailing list