From cad4340e6c6f093eef790cb8735a1b60a2735c48 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 21 Apr 2023 16:45:29 +0000 Subject: [PATCH] small fix for last commit git-svn-id: svn://192.168.202.10@3713 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl index ea240bb9..eacd62c1 100644 --- a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl +++ b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl @@ -2194,7 +2194,7 @@ if ($timeclock_end_of_day_NOW > 0) if ($sum_inserts > 0) { - $stmtA = "INSERT INTO vicidial_agent_latency_summary_log(user,log_date,web_ip,latency_count,latency_peak,latency_avg) SELECT user,'$RMSQLdate','---ALL---',sum(latency_count),max(latency_peak),sum(latency_avg * latency_count) / sum(latency_count) from vicidial_agent_latency_summary_log where log_date = \"$RMSQLdate\" group by user order by user;;"; + $stmtA = "INSERT INTO vicidial_agent_latency_summary_log(user,log_date,web_ip,latency_count,latency_peak,latency_avg) SELECT user,'$RMSQLdate','---ALL---',sum(latency_count),max(latency_peak),sum(latency_avg * latency_count) / sum(latency_count) from vicidial_agent_latency_summary_log where log_date = \"$RMSQLdate\" group by user order by user;"; $affected_rows = $dbhA->do($stmtA) or die "Couldn't execute query: |$stmtA|\n"; $event_string = "vicidial_agent_latency_summary_log ALL insert query: |$affected_rows|$stmtA|"; if ($DBX) {print "$event_string\n";}