mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-06-17 21:29:39 +00:00
Added getSectorsPerDisk.
This commit is contained in:
parent
0caa8011e1
commit
119297dfa1
|
@ -176,4 +176,13 @@ public abstract class ImageOrder {
|
|||
int size = diskImageManager.getPhysicalSize();
|
||||
diskImageManager.setDiskImage(new byte[size]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Answer with the total number of sectors in a disk.
|
||||
* This is used to size the disk and compare sizes instead of using byte counts
|
||||
* which can differ.
|
||||
*/
|
||||
public int getSectorsPerDisk() {
|
||||
return getTracksPerDisk() * getSectorsPerTrack();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user