mirror of
https://github.com/restic/restic.git
synced 2025-08-11 23:17:41 +00:00
Correct plen for snapshots
This commit is contained in:
cmd/restic
@@ -245,7 +245,7 @@ func (cmd CmdBackup) Execute(args []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
fmt.Printf("snapshot %s saved\n", id[:plen])
|
||||
fmt.Printf("snapshot %s saved\n", id[:plen/2])
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@@ -140,7 +140,7 @@ func (cmd CmdSnapshots) Execute(args []string) error {
|
||||
if len(sn.Paths) == 0 {
|
||||
continue
|
||||
}
|
||||
tab.Rows = append(tab.Rows, []interface{}{sn.ID()[:plen], sn.Time.Format(TimeFormat), sn.Hostname, sn.Paths[0]})
|
||||
tab.Rows = append(tab.Rows, []interface{}{sn.ID()[:plen/2], sn.Time.Format(TimeFormat), sn.Hostname, sn.Paths[0]})
|
||||
|
||||
if len(sn.Paths) > 1 {
|
||||
for _, path := range sn.Paths {
|
||||
|
Reference in New Issue
Block a user