2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 12:55:18 +00:00

Correct plen for snapshots

This commit is contained in:
Alexander Neumann 2015-03-28 16:15:48 +01:00
parent 616170ed2e
commit 4d24f2eab3
2 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ func (cmd CmdBackup) Execute(args []string) error {
return err return err
} }
fmt.Printf("snapshot %s saved\n", id[:plen]) fmt.Printf("snapshot %s saved\n", id[:plen/2])
return nil return nil
} }

View File

@ -140,7 +140,7 @@ func (cmd CmdSnapshots) Execute(args []string) error {
if len(sn.Paths) == 0 { if len(sn.Paths) == 0 {
continue 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 { if len(sn.Paths) > 1 {
for _, path := range sn.Paths { for _, path := range sn.Paths {