From: Dominik Csapak Date: Fri, 30 Jun 2023 08:27:48 +0000 (+0200) Subject: statistics: fix update virusinfo X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=1828db45fbbc9103557cb0ac92cba6638a941e67;hp=e932d8b82e34337bcc1c9dfe76ec632cb5381e41;p=pmg-api.git statistics: fix update virusinfo by moving the closing parenthesis to the correct place Fixes: 9972a7c ("postgresql compat: cast result from EXTRACT to INTEGER") Signed-off-by: Dominik Csapak --- diff --git a/src/PMG/Statistic.pm b/src/PMG/Statistic.pm index 950dbc2..ef4f5ba 100644 --- a/src/PMG/Statistic.pm +++ b/src/PMG/Statistic.pm @@ -342,7 +342,7 @@ sub update_stats_virusinfo { my $sql = ''; push @values, "Count = Count + $ref->{count}" if $ref->{count}; - push @values, "MTime = EXTRACT(EPOCH FROM now()::INTEGER)"; + push @values, "MTime = EXTRACT(EPOCH FROM now())::INTEGER"; if (scalar (@values)) { $sql .= "UPDATE VirusInfo SET ";