From 52dd756afe3ecc2dc39f775e3355962aa86ca4ef Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Wed, 8 Jun 2016 08:53:33 -0400 Subject: [PATCH] Fixed the formating of % in nomad alloc status --- command/alloc_status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/alloc_status.go b/command/alloc_status.go index 58ce2f2f4..81c154821 100644 --- a/command/alloc_status.go +++ b/command/alloc_status.go @@ -402,7 +402,7 @@ func (c *AllocStatusCommand) printTaskResourceUsage(task string, resourceUsage * out = make([]string, 2) out[0] = "Percent|Throttled Periods|Throttled Time" percent := strconv.FormatFloat(cpuStats.Percent, 'f', 2, 64) - out[1] = fmt.Sprintf("%v %|%v|%v", percent, + out[1] = fmt.Sprintf("%v %%|%v|%v", percent, cpuStats.ThrottledPeriods, cpuStats.ThrottledTime) c.Ui.Output(formatList(out)) }