aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2016-12-19 14:06:12 +0100
committerRickard Green <[email protected]>2016-12-19 14:06:12 +0100
commit064a2630129caadbca58aaebe83f78735c1e374d (patch)
tree7f8a1827fa6d18dfbf948ee17499b6489fff2c42 /erts
parent1715b9284643150da0f3ea43df42df1a4a90e144 (diff)
downloadotp-064a2630129caadbca58aaebe83f78735c1e374d.tar.gz
otp-064a2630129caadbca58aaebe83f78735c1e374d.tar.bz2
otp-064a2630129caadbca58aaebe83f78735c1e374d.zip
Fix printout of timer data in crash dump
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/erl_hl_timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_hl_timer.c b/erts/emulator/beam/erl_hl_timer.c
index d29d079fc5..cc61f9abf1 100644
--- a/erts/emulator/beam/erl_hl_timer.c
+++ b/erts/emulator/beam/erl_hl_timer.c
@@ -2865,7 +2865,8 @@ btm_print(ErtsHLTimer *tmr, void *vbtmp)
if (tmr->timeout <= btmp->now)
left = 0;
- left = ERTS_CLKTCKS_TO_MSEC(tmr->timeout - btmp->now);
+ else
+ left = ERTS_CLKTCKS_TO_MSEC(tmr->timeout - btmp->now);
receiver = ((tmr->head.roflgs & ERTS_TMR_ROFLG_REG_NAME)
? tmr->receiver.name