Skip to content

Commit

Permalink
initiator: print percent complete - dont make user do math.
Browse files Browse the repository at this point in the history
  • Loading branch information
erichelgeson committed Feb 11, 2024
1 parent 71ce1da commit 908af73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BlueSCSI_initiator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ void scsiInitiatorMainLoop()
g_initiator_state.target_file.flush();

int speed_kbps = numtoread * g_initiator_state.sectorsize / (millis() - time_start);
log("SCSI read succeeded, sectors done: ",
(int)g_initiator_state.sectors_done, " / ", (int)g_initiator_state.sectorcount,
" speed ", speed_kbps, " kB/s");
log_f("SCSI read succeeded, sectors done: %d / %d speed %d kB/s - %.2f%%",
g_initiator_state.sectors_done, g_initiator_state.sectorcount, speed_kbps,
(float)(((float)g_initiator_state.sectors_done / (float)g_initiator_state.sectorcount) * 100.0));
}
}
}
Expand Down

0 comments on commit 908af73

Please sign in to comment.