From 0bc61bf05a146a38135cd4243f68cfbf19058159 Mon Sep 17 00:00:00 2001 From: TotaJ Date: Mon, 11 Jan 2021 11:21:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=92=E6=A1=A3=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E4=BF=A1=E6=81=AF=E5=88=B7=E5=B1=8F=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/process/postmaster/pgarch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/process/postmaster/pgarch.cpp b/src/gausskernel/process/postmaster/pgarch.cpp index c3c59651a..1d037c2e1 100755 --- a/src/gausskernel/process/postmaster/pgarch.cpp +++ b/src/gausskernel/process/postmaster/pgarch.cpp @@ -430,7 +430,7 @@ static void pgarch_MainLoop(void) last_time = TIME_GET_MILLISEC(last_copy_time); } gettimeofday(&curtime, NULL); - long time_diff = (long)TIME_GET_MILLISEC(curtime) - t_thrd.arch.last_arch_time; + long time_diff = (long)TIME_GET_MILLISEC(curtime) - last_time; if (time_diff < 0) { time_diff = 0; }