in collector/collector.go [443:475]
func printTableHeader(gl *config.Global, currentDSCP string, logger *log.Logger) {
color.Set(color.FgHiYellow, color.Bold)
defer color.Unset()
if *gl.CLI.Foreground {
fmt.Printf("%74s\n", "Arachne ["+defines.ArachneVersion+"]")
fmt.Printf("%-55s%64s\n",
gl.RemoteConfig.HostName+":"+strconv.Itoa(int(gl.RemoteConfig.TargetTCPPort))+
" with QoS DSCP '"+currentDSCP+"'", time.Now().Format(time.RFC850))
if gl.RemoteConfig.Location != "" && gl.RemoteConfig.Location != " " {
fmt.Printf("Location: %s\n", gl.RemoteConfig.Location)
}
fmt.Printf("\n%51s|%26s|%8s%s%8s|\n", "", "", "", "RTT (msec)", "")
fmt.Printf("Host%47s|%8s%s%10s|%4s%s%7s%s%5s|%2s%s\n", "",
"", "Location", "",
"", "2-way", "", "1-way", "",
"", "Timed Out?")
color.Set(color.FgHiYellow)
fmt.Printf(strings.Repeat("-", hostWidth) + "|" +
strings.Repeat("-", 26) + "|" +
strings.Repeat("-", 26) + "|" +
strings.Repeat("-", 13) + "\n")
} else {
logger.Info("Arachne -- Table of Results",
zap.String("version", defines.ArachneVersion),
zap.String("host", gl.RemoteConfig.HostName),
zap.String("host_location", gl.RemoteConfig.Location),
zap.Any("target_TCP_port", gl.RemoteConfig.TargetTCPPort),
zap.String("QoS_DSCP", currentDSCP),
)
}
}