Timestamp

This commit is contained in:
idanoo 2023-02-13 08:17:12 +13:00
parent 31ad65d711
commit 43514cc0b0
Signed by: idanoo
GPG key ID: 387387CDBC02F132
2 changed files with 1 additions and 21 deletions

View file

@ -165,7 +165,7 @@ func getLastWeekMetric(serviceName string) int {
val, err := runIntQuery(
POSTGRESQL_STATS_DB,
fmt.Sprintf(
"SELECT metric_value FROM %s WHERE metric_name = '%s' AND service = '%s' AND metric_time = '%d' LIMIT 1",
"SELECT metric_value FROM %s WHERE metric_name = '%s' AND service = '%s' AND metric_time = '%s' LIMIT 1",
POSTGRESQL_STATS_TABLE,
METRICNAME_USERCOUNT,
serviceName,