Skip to content

Commit

Permalink
debug output format string
Browse files Browse the repository at this point in the history
  • Loading branch information
gaissmai committed Dec 30, 2023
1 parent e36a3f4 commit c70fc2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (t Table) fprintBST(w io.Writer) error {
// fprintBST recursive helper.
func (n *node) fprintBST(w io.Writer, pad string) error {
// stringify this node
_, err := fmt.Fprintf(w, "%v [subtree maxUpper: %v]\n", n.cidr, n.maxUpper.cidr)
_, err := fmt.Fprintf(w, "%v [prio:%.4g] [subtree maxUpper: %v]\n", n.cidr, float64(n.prio)/math.MaxUint64, n.maxUpper.cidr)
if err != nil {
return err
}
Expand Down

0 comments on commit c70fc2d

Please sign in to comment.