diff --git a/pkg/vfs/backup.go b/pkg/vfs/backup.go index 0126bfb46c3a..d2a4dafe69aa 100644 --- a/pkg/vfs/backup.go +++ b/pkg/vfs/backup.go @@ -84,6 +84,8 @@ func Backup(m meta.Meta, blob object.ObjectStorage, interval time.Duration, skip logger.Warnf("backup metadata failed: %s", err) } LastBackupDurationG.Set(time.Since(now).Seconds()) + } else { + LastBackupDurationG.Set(0) } } }