Skip to content

Commit

Permalink
change alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
PatWie committed Jan 16, 2018
1 parent 6c0e15d commit 42959d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cluster/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (c *Cluster) Print(show_processes bool, show_time bool, timeout_threshold i
d.MemoryUtilization.Used/1024/1024,
d.MemoryUtilization.Total/1024/1024,
int(d.MemoryUtilization.Used*100/d.MemoryUtilization.Total))
device_utilization := fmt.Sprintf("%d %%", d.Utilization)
device_utilization := fmt.Sprintf("%3d %%", d.Utilization)

if timeout {
device_MemoryInfo = "TimeOut"
Expand Down Expand Up @@ -148,6 +148,7 @@ func (c *Cluster) Print(show_processes bool, show_time bool, timeout_threshold i

table.AddRow(tableRow...)
table.SetAlign(termtables.AlignRight, 3)
table.SetAlign(termtables.AlignCenter, 4)
if show_processes {
table.SetAlign(termtables.AlignRight, 5)
}
Expand Down

0 comments on commit 42959d5

Please sign in to comment.