aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-05-18 20:42:04 +0200
committerRickard Green <[email protected]>2017-05-19 13:10:59 +0200
commit32ea8ba368c455afba07afd85bed6fb57879f56d (patch)
treedee24e857c59b7298a020315dbf81c793553bdd6 /erts/etc
parent773c4d4f0416f25e3c0c6939f8d0871dc4486bab (diff)
downloadotp-32ea8ba368c455afba07afd85bed6fb57879f56d.tar.gz
otp-32ea8ba368c455afba07afd85bed6fb57879f56d.tar.bz2
otp-32ea8ba368c455afba07afd85bed6fb57879f56d.zip
Make statistics/1 aware of dirty run-queues and tasks
Diffstat (limited to 'erts/etc')
-rw-r--r--erts/etc/unix/etp-commands.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/etc/unix/etp-commands.in b/erts/etc/unix/etp-commands.in
index b7b3a2ae99..fc7b614c21 100644
--- a/erts/etc/unix/etp-commands.in
+++ b/erts/etc/unix/etp-commands.in
@@ -2810,10 +2810,10 @@ define etp-run-queue-info-internal
else
if ($sched_type == 1)
printf "\n--- Dirty CPU Run Queue ---\n"
- set $runq = &erts_aligned_run_queues[-1].runq
+ set $runq = &erts_aligned_run_queues[erts_no_run_queues].runq
else
printf "\n--- Dirty I/O Run Queue ---\n"
- set $runq = &erts_aligned_run_queues[-2].runq
+ set $runq = &erts_aligned_run_queues[erts_no_run_queues+1].runq
end
end
printf " Length: total=%d", *((Uint32 *) &($runq->len))