зеркало из https://github.com/docker/hub-tool.git
Fix rate limits, show the limit and not the value of the pointer...
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
Родитель
d7485c3fa9
Коммит
d8f7315fe6
|
@ -87,8 +87,8 @@ func printRateLimit(rl *hub.RateLimits) func(io.Writer, interface{}) error {
|
|||
if *rl.Remaining <= 10 {
|
||||
color = ansi.Error
|
||||
}
|
||||
fmt.Fprintf(out, color("Limit: %d, %s window\n"), rl.Limit, units.HumanDuration(time.Duration(*rl.LimitWindow)*time.Second))
|
||||
fmt.Fprintf(out, color("Remaining: %d, %s window\n"), rl.Remaining, units.HumanDuration(time.Duration(*rl.RemainingWindow)*time.Second))
|
||||
fmt.Fprintf(out, color("Limit: %d, %s window\n"), *rl.Limit, units.HumanDuration(time.Duration(*rl.LimitWindow)*time.Second))
|
||||
fmt.Fprintf(out, color("Remaining: %d, %s window\n"), *rl.Remaining, units.HumanDuration(time.Duration(*rl.RemainingWindow)*time.Second))
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче