miscounted snapshots to add

This commit is contained in:
shoopea 2023-06-30 00:07:07 +02:00
parent 89ae6ea612
commit aa8d20370b
2 changed files with 5 additions and 5 deletions

2
box.go
View File

@ -196,7 +196,7 @@ func TransferZfs(from, to Addr) error {
return err return err
} }
for _, v := range fromSnapshots[fromFromSnapshotId:] { for _, v := range fromSnapshots[fromFromSnapshotId+1:] {
cfg.box[to.Box()].zfs.filesystems[to.Path()].AddSnapshot(&ZfsSnapshot{name: v.name, fs: cfg.box[to.Box()].zfs.filesystems[to.Path()]}) cfg.box[to.Box()].zfs.filesystems[to.Path()].AddSnapshot(&ZfsSnapshot{name: v.name, fs: cfg.box[to.Box()].zfs.filesystems[to.Path()]})
} }
} }

View File

@ -1,7 +1,7 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "f94f9b9" var githash = "89ae6ea"
var branch = "v2" var branch = "v2"
var buildstamp = "2023-06-29_21:46:39" var buildstamp = "2023-06-29_22:06:42"
var commits = "60" var commits = "61"
var version = "f94f9b9-b60 - 2023-06-29_21:46:39" var version = "89ae6ea-b61 - 2023-06-29_22:06:42"