diff options
author | Rickard Green <[email protected]> | 2016-12-19 14:06:12 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2016-12-19 14:06:12 +0100 |
commit | 064a2630129caadbca58aaebe83f78735c1e374d (patch) | |
tree | 7f8a1827fa6d18dfbf948ee17499b6489fff2c42 /erts/emulator/beam/erl_hl_timer.c | |
parent | 1715b9284643150da0f3ea43df42df1a4a90e144 (diff) | |
download | otp-064a2630129caadbca58aaebe83f78735c1e374d.tar.gz otp-064a2630129caadbca58aaebe83f78735c1e374d.tar.bz2 otp-064a2630129caadbca58aaebe83f78735c1e374d.zip |
Fix printout of timer data in crash dump
Diffstat (limited to 'erts/emulator/beam/erl_hl_timer.c')
-rw-r--r-- | erts/emulator/beam/erl_hl_timer.c | 3 |
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 |