X-Git-Url: http://git.iain.cx/?p=pstop.git;a=blobdiff_plain;f=p_s%2Ftable_io_waits_summary_by_table%2Ftable_io_waits_summary_by_table_row.go;h=5d52b605f46cb8b5aa464fe433428771db4cbffc;hp=2551e0dd730de41c46a8018fd5a02e8ccf8adb3f;hb=99e8324ae6cc0c84dd9ced4486b4d7b6c049790c;hpb=6cd1819c4e354d974794363d71d10a9902ab627e diff --git a/p_s/table_io_waits_summary_by_table/table_io_waits_summary_by_table_row.go b/p_s/table_io_waits_summary_by_table/table_io_waits_summary_by_table_row.go index 2551e0d..5d52b60 100644 --- a/p_s/table_io_waits_summary_by_table/table_io_waits_summary_by_table_row.go +++ b/p_s/table_io_waits_summary_by_table/table_io_waits_summary_by_table_row.go @@ -62,7 +62,7 @@ func (r *table_io_waits_summary_by_table_row) pretty_name() string { if len(s) > 30 { s = s[:29] } - return fmt.Sprintf("%-30s", s) + return s } func (r *table_io_waits_summary_by_table_row) latency_headings() string { @@ -76,7 +76,7 @@ func (r *table_io_waits_summary_by_table_row) ops_headings() string { func (r *table_io_waits_summary_by_table_row) latency_row_content(totals table_io_waits_summary_by_table_row) string { // assume the data is empty so hide it. name := r.pretty_name() - if r.COUNT_STAR == 0 { + if r.COUNT_STAR == 0 && name != "Totals" { name = "" } @@ -94,7 +94,7 @@ func (r *table_io_waits_summary_by_table_row) latency_row_content(totals table_i func (r *table_io_waits_summary_by_table_row) ops_row_content(totals table_io_waits_summary_by_table_row) string { // assume the data is empty so hide it. name := r.pretty_name() - if r.COUNT_STAR == 0 { + if r.COUNT_STAR == 0 && name != "Totals" { name = "" } @@ -155,7 +155,7 @@ func (this *table_io_waits_summary_by_table_row) subtract(other table_io_waits_s func (t table_io_waits_summary_by_table_rows) totals() table_io_waits_summary_by_table_row { var totals table_io_waits_summary_by_table_row - totals.OBJECT_SCHEMA = "TOTALS" + totals.OBJECT_SCHEMA = "Totals" for i := range t { totals.add(t[i])