Commit 08fa60e5 authored by Sergey Vojtovich's avatar Sergey Vojtovich

MDEV-8382 - Processlist returns random numbers in Time column

Time column of SHOW PROCESSLIST was returned in microseconds after rev. 8f603bcb.
Revert original timescale (seconds).
parent a0f5f407
......@@ -2460,7 +2460,7 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
else
protocol->store(command_name[thd_info->command].str, system_charset_info);
if (thd_info->start_time && now > thd_info->start_time)
protocol->store_long(now - thd_info->start_time);
protocol->store_long((now - thd_info->start_time) / HRTIME_RESOLUTION);
else
protocol->store_null();
protocol->store(thd_info->state_info, system_charset_info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment