From 08dce5e04da8aa013844a31a508d06c5116c55bc Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 18 Oct 2021 22:30:11 +0800 Subject: [PATCH] bug --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index e9ae3ab..458eb31 100644 --- a/app.go +++ b/app.go @@ -563,7 +563,7 @@ func (a AppConfig) SendSnapshots() error { log.Printf("AppConfig.SendSnapshots : %s : Last snapshot on %s is %s", a.Name, dest.Box(), string(dLastSnapshot)) } var sCurrSnapshot Snapshot - sNextSnapshot := Snapshot(string(dLastSnapshot)[len(string(dest))+2:]) + sNextSnapshot := Snapshot(string(dLastSnapshot)[len(string(dest))+1:]) for !cfg.Box[src.Box()].ssh.isLastSnapshot(sNextSnapshot) { sCurrSnapshot = sNextSnapshot sNextSnapshot, err = cfg.Box[src.Box()].ssh.getNextSnapshot(sNextSnapshot)