The total overruns printout at sim exit prints the wrong parameter. #560

Changed the printout to print the total number of overruns.
This commit is contained in:
Alex Lin 2018-02-08 16:18:11 -06:00
parent 4b2f6e660f
commit bc8d1a3796

View File

@ -489,7 +489,7 @@ int Trick::RealtimeSync::shutdown() {
os << "\n" <<
" REALTIME SHUTDOWN STATS:\n" ;
if ( active ) {
os << " REALTIME TOTAL OVERRUNS: " << std::setw(12) << frame_overrun_cnt << "\n" ;
os << " REALTIME TOTAL OVERRUNS: " << std::setw(12) << total_overrun << "\n" ;
}
if ( sim_end_init_time != 0 ) {
double init_time = (sim_end_init_time - sim_start_time) / (double)default_clock->clock_tics_per_sec ;