Hardcode the settled sizes, streams and batch instead of carrying flags for them
This commit is contained in:
@@ -54,7 +54,7 @@ func (v cableView) minText() string {
|
||||
|
||||
// Averaging the two directions cancels the phy asymmetry between them, which is
|
||||
// about 790ns and swamps any cable, so one direction alone cannot give a length.
|
||||
func (c config) cableMetres(views []view) (float64, bool) {
|
||||
func cableMetres(views []view, nsPerM float64) (float64, bool) {
|
||||
if len(views) == 0 {
|
||||
return 0, false
|
||||
}
|
||||
@@ -65,7 +65,7 @@ func (c config) cableMetres(views []view) (float64, bool) {
|
||||
}
|
||||
excess += float64(v.cable.min - v.cable.floor)
|
||||
}
|
||||
return excess / float64(len(views)) / c.nsPerM, true
|
||||
return excess / float64(len(views)) / nsPerM, true
|
||||
}
|
||||
|
||||
func newCableStats() *cableStats {
|
||||
|
||||
Reference in New Issue
Block a user