archive,cmd,images: clean up some code

Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
This commit is contained in:
unclejack 2017-03-30 11:41:22 +03:00
parent e91d6805af
commit 7b4d238ee3
5 changed files with 5 additions and 11 deletions

View file

@ -137,7 +137,7 @@ func main() {
// start the prometheus metrics API for containerd
serveMetricsAPI()
log.G(global).Infof("containerd successfully booted in %fs", time.Now().Sub(start).Seconds())
log.G(global).Infof("containerd successfully booted in %fs", time.Since(start).Seconds())
return handleSignals(signals, server)
}

6
cmd/dist/fetch.go vendored
View file

@ -212,11 +212,7 @@ func (j *jobs) jobs() []string {
defer j.mu.Unlock()
var jobs []string
for _, j := range j.refs {
jobs = append(jobs, j)
}
return jobs
return append(jobs, j.refs...)
}
type statusInfo struct {