Merge pull request #1174 from dmcgowan/refactor-committedat-createdat

Rename CommittedAt to CreatedAt in content interface
This commit is contained in:
Michael Crosby
2017-07-12 17:11:02 -07:00
committed by GitHub
9 changed files with 108 additions and 108 deletions

4
cmd/dist/fetch.go vendored
View File

@@ -163,13 +163,13 @@ outer:
Status: "waiting",
}
}
} else if info.CommittedAt.After(start) {
} else if info.CreatedAt.After(start) {
statuses[key] = statusInfo{
Ref: key,
Status: "done",
Offset: info.Size,
Total: info.Size,
UpdatedAt: info.CommittedAt,
UpdatedAt: info.CreatedAt,
}
} else {
statuses[key] = statusInfo{

2
cmd/dist/list.go vendored
View File

@@ -61,7 +61,7 @@ var listCommand = cli.Command{
fmt.Fprintf(tw, "%s\t%s\t%s\t%s\n",
info.Digest,
units.HumanSize(float64(info.Size)),
units.HumanDuration(time.Since(info.CommittedAt)),
units.HumanDuration(time.Since(info.CreatedAt)),
labels)
return nil
}