Measure cable length from hardware transmit and receive timestamps
This commit is contained in:
@@ -75,6 +75,13 @@ func commas(v uint64) string {
|
||||
return strings.Join(append([]string{s}, parts...), ",")
|
||||
}
|
||||
|
||||
func commasInt(v int64) string {
|
||||
if v < 0 {
|
||||
return "-" + commas(uint64(-v))
|
||||
}
|
||||
return commas(uint64(v))
|
||||
}
|
||||
|
||||
func humanBytes(b uint64) string {
|
||||
const unit = 1000.0
|
||||
v := float64(b)
|
||||
|
||||
Reference in New Issue
Block a user