From 1c1c65c8db6862d129c59ea04fa0bc9e6cbc1c21 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Mon, 18 Oct 2021 14:54:49 +0800 Subject: [PATCH] [TD-10676]:log database io_read/io_write value abnormal --- src/plugins/monitor/src/monMain.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/monitor/src/monMain.c b/src/plugins/monitor/src/monMain.c index fea793fa86..31202b1c24 100644 --- a/src/plugins/monitor/src/monMain.c +++ b/src/plugins/monitor/src/monMain.c @@ -325,6 +325,9 @@ static int32_t monBuildIoSql(char *sql) { monDebug("failed to get io info"); } + readKB = readKB/tsMonitorInterval; + writeKB = writeKB/tsMonitorInterval; + return sprintf(sql, ", %f, %f", readKB, writeKB); } -- GitLab