maglevt: show FQDN in header instead of config paths; v1.0.1

Replace the cfgPath field in the TUI header with the system's
fully-qualified hostname via gethostname + CNAME lookup, matching
what `hostname -f` produces.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-17 22:20:35 +02:00
parent 701674399a
commit a8f02b913d
4 changed files with 22 additions and 4 deletions

View File

@@ -149,7 +149,7 @@ func (m Model) viewHeader() string {
}
line := fmt.Sprintf(
"maglevt — %s — interval: %s timeout: %s header: %s [%s] uptime: %s",
m.cfgPath,
m.host,
m.opts.Interval,
m.opts.Timeout,
m.opts.Header,