Hardcode the settled sizes, streams and batch instead of carrying flags for them

This commit is contained in:
flamingcow
2026-08-04 13:31:14 -07:00
parent 05e1958710
commit 39c27166dc
2 changed files with 37 additions and 82 deletions
+2 -2
View File
@@ -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 {