mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
dashboard: commit limited to 7 characters
This commit is contained in:
parent
26133480cf
commit
9a46b5cbc4
1 changed files with 5 additions and 1 deletions
|
|
@ -208,11 +208,15 @@ func (db *Dashboard) apiHandler(conn *websocket.Conn) {
|
|||
if len(params.VersionMeta) > 0 {
|
||||
versionMeta = fmt.Sprintf(" (%s)", params.VersionMeta)
|
||||
}
|
||||
commit := db.commit
|
||||
if len(commit) > 7 {
|
||||
commit = commit[:7]
|
||||
}
|
||||
// Send the past data.
|
||||
client.msg <- Message{
|
||||
General: &GeneralMessage{
|
||||
Version: fmt.Sprintf("v%d.%d.%d%s", params.VersionMajor, params.VersionMinor, params.VersionPatch, versionMeta),
|
||||
Commit: db.commit,
|
||||
Commit: commit,
|
||||
},
|
||||
Home: &HomeMessage{
|
||||
Memory: db.charts.Memory,
|
||||
|
|
|
|||
Loading…
Reference in a new issue