mirror of
https://github.com/akuker/RASCSI.git
synced 2025-08-05 17:25:47 +00:00
SCSIMON immediately dies and doesn't collect any data (#271)
* SCSIMON immediately exits due to an introduced code error * Fix string printout Co-authored-by: Tony Kuker <akuker@gmail.com>
This commit is contained in:
@@ -412,7 +412,7 @@ int main(int argc, char* argv[])
|
||||
sched_setscheduler(0, SCHED_FIFO, &schparam);
|
||||
|
||||
// Start execution
|
||||
running = false;
|
||||
running = true;
|
||||
bus->SetACT(FALSE);
|
||||
|
||||
(void)gettimeofday(&start_time, NULL);
|
||||
@@ -481,7 +481,7 @@ int main(int argc, char* argv[])
|
||||
s << "Elapsed time: " << elapsed_us << " microseconds (" << elapsed_us / 1000000 << " seconds)";
|
||||
LOGINFO("%s", s.str().c_str());
|
||||
s.str("");
|
||||
s << "Collected %lu changes" << data_idx;
|
||||
s << "Collected " << data_idx << " changes";
|
||||
LOGINFO("%s", s.str().c_str());
|
||||
|
||||
// Note: ns_per_loop is a global variable that is used by Cleanup() to printout the timestamps.
|
||||
|
Reference in New Issue
Block a user