Turn the display portrait and split it into live and since-reset panels
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
@@ -69,14 +68,6 @@ func (c config) cableMetres(views []view) (float64, bool) {
|
||||
return excess / float64(len(views)) / c.nsPerM, true
|
||||
}
|
||||
|
||||
func (c config) cableText(views []view) string {
|
||||
m, ok := c.cableMetres(views)
|
||||
if !ok {
|
||||
return ""
|
||||
}
|
||||
return fmt.Sprintf("cable %.1f m", m)
|
||||
}
|
||||
|
||||
func newCableStats() *cableStats {
|
||||
return &cableStats{
|
||||
txPend: make(map[uint64]int64, probePendCap),
|
||||
|
||||
Reference in New Issue
Block a user