File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2293,7 +2293,7 @@ impl DiskDrive {
22932293 let tmap_track = disk. tmap_data [ disk. track as usize ] ;
22942294
22952295 // LSS is running at 2Mhz i.e. 0.5 us
2296- self . lss_cycle += 4 * 10_000 ;
2296+ self . lss_cycle += 4 * 1000 ;
22972297
22982298 let random_bits = NOMINAL_USABLE_BITS_TRACK_SIZE ;
22992299 let track_bits = if tmap_track == 255 {
@@ -2329,7 +2329,7 @@ impl DiskDrive {
23292329 32
23302330 } ;
23312331
2332- if self . lss_cycle >= optimal_timing as isize * 10_001 {
2332+ if self . lss_cycle >= optimal_timing as isize * 1000 - 1 {
23332333 self . bit_buffer <<= 1 ;
23342334
23352335 if track_type != TrackType :: Flux {
@@ -2354,10 +2354,10 @@ impl DiskDrive {
23542354 self . pulse = Self :: get_random_disk_bit ( self . random_one_rate , fastrand:: f32 ( ) )
23552355 }
23562356
2357- self . lss_cycle -= optimal_timing as isize * 10_001 ;
2358- let delay = optimal_timing as isize * 10_001 - 32 * 10_000 ;
2357+ self . lss_cycle -= optimal_timing as isize * 1000 - 1 ;
2358+ let delay = optimal_timing as isize * 1000 - 32 * 1000 ;
23592359 if delay < 0 && self . pulse > 0 {
2360- self . lss_cycle += delay + 1
2360+ self . lss_cycle += delay
23612361 }
23622362 }
23632363
You can’t perform that action at this time.
0 commit comments