Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FEATURE (backups): Remove milliseconds from backup message

Rostislav Dugine36298954e10
diff --git a/backend/internal/features/backups/service.go b/backend/internal/features/backups/service.go
index f212f4bb..8ca48e54 100644
--- a/backend/internal/features/backups/service.go
+++ b/backend/internal/features/backups/service.go
@@ -296,8 +296,7 @@ func (s *BackupService) SendBackupNotification(
totalMs := backup.BackupDurationMs
minutes := totalMs / (1000 * 60)
seconds := (totalMs % (1000 * 60)) / 1000
- milliseconds := totalMs % 1000
- durationStr := fmt.Sprintf("%dm %ds %dms", minutes, seconds, milliseconds)
+ durationStr := fmt.Sprintf("%dm %ds", minutes, seconds)
message = fmt.Sprintf(
"Backup completed successfully in %s.\nCompressed backup size: %s",