From 2bf1227ee67bf27075de54907f07ffc77bcd6966 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 18 Oct 2021 22:37:43 +0800 Subject: [PATCH] fix path --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index 458eb31..60f8df5 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))+1:]) + sNextSnapshot := Snapshot(string(dLastSnapshot)[len(dest.Path())+len(src.Box())+2:]) for !cfg.Box[src.Box()].ssh.isLastSnapshot(sNextSnapshot) { sCurrSnapshot = sNextSnapshot sNextSnapshot, err = cfg.Box[src.Box()].ssh.getNextSnapshot(sNextSnapshot)