bugfix hourly totals
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-28 13:27:05 +11:00
parent 1f2783fc86
commit aa6abb8cb2
2 changed files with 32 additions and 4 deletions

View File

@@ -204,6 +204,7 @@ func (c *CronTask) RunVcenterSnapshotHourly(ctx context.Context, logger *slog.Lo
rowCount, err := db.TableRowCount(ctx, dbConn, tableName)
if err != nil {
c.Logger.Warn("unable to count hourly snapshot rows", "error", err, "table", tableName)
rowCount = -1
}
if err := report.RegisterSnapshot(ctx, c.Database, "hourly", tableName, startTime, rowCount); err != nil {
c.Logger.Warn("failed to register hourly snapshot", "error", err, "table", tableName)