Changeset 2583

Show
Ignore:
Timestamp:
08/12/08 12:07:24 (4 months ago)
Author:
kris
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk/PCInstall/pcinstall.cpp

    r2579 r2583  
    864864         
    865865        // Now check for any additional free space on this drive 
    866         tmp = listDriveBox->currentText(); 
    867         tmp.remove(0, tmp.find(" ") + 1); 
    868         tmp.truncate(tmp.find("MB")); 
     866        // KPM 8-12-08, change method to determine size of disk 
     867        //tmp = listDriveBox->currentText(); 
     868        //tmp.remove(0, tmp.find(" ") + 1); 
     869        //tmp.truncate(tmp.find("MB")); 
     870        tmp = BlocksToMB(TotalDriveBlocks); 
    869871        TotalDriveMB = tmp.toLongLong(); 
    870872        //QMessageBox::warning( this, "Msg",  "Drive MB: " + tmp , "Retry", "Quit", 0, 0, 1 );