This commit is contained in:
shoopea 2021-10-18 22:30:11 +08:00
parent 91a7a2a2ce
commit 08dce5e04d

2
app.go
View File

@ -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)