mirror of
https://github.com/postgres/postgres.git
synced 2026-05-22 02:08:24 -04:00
pg_test_timing: fix unit in backward-clock warning
pg_test_timing reports timing differences in nanoseconds in master, and in microseconds in v14 through v18, but previously the backward-clock warning incorrectly labeled the value as milliseconds. This commit fixes the warning message to use "ns" in master and "us" in v14 through v18, matching the actual unit being reported. Backpatch to all supported versions. Author: Chao Li <lic@highgo.com> Reviewed-by: Lukas Fittl <lukas@fittl.com> Reviewed-by: Xiaopeng Wang <wxp_728@163.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/F780CEEB-A237-4302-9F55-60E9D8B6533D@gmail.com Backpatch-through: 14
This commit is contained in:
parent
526d9ca619
commit
07e96aeff9
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ test_timing(unsigned int duration)
|
|||
if (diff < 0)
|
||||
{
|
||||
fprintf(stderr, _("Detected clock going backwards in time.\n"));
|
||||
fprintf(stderr, _("Time warp: %d ms\n"), diff);
|
||||
fprintf(stderr, _("Time warp: %d us\n"), diff);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue