From 284443137d5aaf2aa510aec296db1080b0c4b112 Mon Sep 17 00:00:00 2001 From: DeepikaDixit Date: Tue, 17 Sep 2019 17:22:41 -0700 Subject: [PATCH] Add mode to restic stats (#270) --- pkg/restic/restic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/restic/restic.go b/pkg/restic/restic.go index 0b9cc0a3e3..1c27e4e8fa 100644 --- a/pkg/restic/restic.go +++ b/pkg/restic/restic.go @@ -120,9 +120,9 @@ func PruneCommand(profile *param.Profile, repository, encryptionKey string) []st } // StatsCommandByID returns restic stats command -func StatsCommandByID(profile *param.Profile, repository, id, encryptionKey string) []string { +func StatsCommandByID(profile *param.Profile, repository, id, mode, encryptionKey string) []string { cmd := resticArgs(profile, repository, encryptionKey) - cmd = append(cmd, "stats", id) + cmd = append(cmd, "stats", id, "--mode", mode) command := strings.Join(cmd, " ") return shCommand(command) }