Skip to content

Commit

Permalink
fix: don't print git sha of the release twice in the dashboard
Browse files Browse the repository at this point in the history
This is a small nit, Talos version already contains sha when it is
needed.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
  • Loading branch information
smira authored and talos-bot committed Jun 30, 2021
1 parent 07fb61e commit ee06dd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/talosctl/cmd/talos/dashboard/components/topline.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ func (widget *TopLine) Update(node string, data *data.Data) {
if nodeData == nil {
widget.Text = "n/a"
} else {
widget.Text = fmt.Sprintf("[%s](fg:yellow,mod:bold) (%s-%s): uptime %s, %d cores, %d procs",
widget.Text = fmt.Sprintf("[%s](fg:yellow,mod:bold) (%s): uptime %s, %d cores, %d procs",
nodeData.Hostname.GetHostname(),
nodeData.Version.GetVersion().GetTag(),
nodeData.Version.GetVersion().GetSha(),
time.Since(time.Unix(int64(nodeData.SystemStat.GetBootTime()), 0)).Round(time.Second),
len(nodeData.CPUsInfo.GetCpuInfo()),
len(nodeData.Processes.GetProcesses()),
Expand Down

0 comments on commit ee06dd6

Please sign in to comment.