SCP: Fix output of SHOW QUEUE to also include event due time in usecs
This commit is contained in:
parent
f30de55f18
commit
0779a945d2
1 changed files with 4 additions and 5 deletions
9
scp.c
9
scp.c
|
@ -4627,14 +4627,13 @@ else {
|
|||
if (uptr == &sim_expect_unit)
|
||||
fprintf (st, " Expect fired");
|
||||
else
|
||||
if ((dptr = find_dev_from_unit (uptr)) != NULL) {
|
||||
if ((dptr = find_dev_from_unit (uptr)) != NULL)
|
||||
fprintf (st, " %s", sim_dname (dptr));
|
||||
if (dptr->numunits > 1)
|
||||
fprintf (st, " at %d%s\n", accum + uptr->time, (uptr->flags & UNIT_IDLE) ? " (Idle capable)" : "");
|
||||
}
|
||||
else
|
||||
fprintf (st, " Unknown");
|
||||
fprintf (st, " at %d\n", accum + uptr->time);
|
||||
fprintf (st, " at %d (%.0f usecs) %s\n", accum + uptr->time,
|
||||
((accum + uptr->time)*1000000.0)/sim_timer_inst_per_sec (),
|
||||
(uptr->flags & UNIT_IDLE) ? " (Idle capable)" : "");
|
||||
accum = accum + uptr->time;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue