mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-01 14:38:28 +00:00
CLEANUP: task: report calls as unsigned in show sess
The "show sess" output used signed ints to report the number of calls, which is confusing for runaway tasks where the call count can turn negative.
This commit is contained in:
parent
4904058661
commit
69b5a7f1a3
@ -2991,7 +2991,7 @@ static int stats_dump_full_strm_to_buffer(struct stream_interface *si, struct st
|
||||
}
|
||||
|
||||
chunk_appendf(&trash,
|
||||
" task=%p (state=0x%02x nice=%d calls=%d exp=%s tmask=0x%lx%s",
|
||||
" task=%p (state=0x%02x nice=%d calls=%u exp=%s tmask=0x%lx%s",
|
||||
strm->task,
|
||||
strm->task->state,
|
||||
strm->task->nice, strm->task->calls,
|
||||
@ -3331,7 +3331,7 @@ static int cli_io_handler_dump_sess(struct appctx *appctx)
|
||||
}
|
||||
|
||||
chunk_appendf(&trash,
|
||||
" ts=%02x age=%s calls=%d cpu=%llu lat=%llu",
|
||||
" ts=%02x age=%s calls=%u cpu=%llu lat=%llu",
|
||||
curr_strm->task->state,
|
||||
human_time(now.tv_sec - curr_strm->logs.tv_accept.tv_sec, 1),
|
||||
curr_strm->task->calls,
|
||||
|
Loading…
Reference in New Issue
Block a user