Bugs-evident cleanup: cable-measure failure is fatal with its reason (failed/fail pretend-path and dead relinked plumbing deleted), bcm.command refuses partial SETs (0 or 5 params, stale-DATA trap made structural), BOOT gains a patched-ixgbe check naming stock-driver boots, panel fault rows matched by label and console rows strict on column count, phy.go split into sff/bcm/rollball and main.go's direction machinery into direction.go (pure moves), input events decoded via encoding/binary, gofmt; verified on hardware (20.00G, zero errors, ECD 41m)
This commit is contained in:
@@ -185,6 +185,9 @@ func (t *streamTable) rule(label string) string {
|
||||
}
|
||||
|
||||
func (t *streamTable) emit(cells []string) []string {
|
||||
if len(cells) != len(t.cols) {
|
||||
panic(fmt.Sprintf("row has %d cells for %d columns", len(cells), len(t.cols)))
|
||||
}
|
||||
var out []string
|
||||
if t.sinceHeader == 0 || (t.headerEvery > 0 && t.sinceHeader >= t.headerEvery) {
|
||||
out = append(out, t.headerLines()...)
|
||||
@@ -192,11 +195,7 @@ func (t *streamTable) emit(cells []string) []string {
|
||||
}
|
||||
var padded []string
|
||||
for i, c := range t.cols {
|
||||
v := ""
|
||||
if i < len(cells) {
|
||||
v = cells[i]
|
||||
}
|
||||
padded = append(padded, pad(v, c.width, c.right))
|
||||
padded = append(padded, pad(cells[i], c.width, c.right))
|
||||
}
|
||||
t.sinceHeader++
|
||||
return append(out, t.join(padded, paint(" │ ", cGrey)))
|
||||
|
||||
Reference in New Issue
Block a user