mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Remove friendlyname traces, preserve endpoints
This commit is contained in:
parent
b809adf981
commit
aab0502a4a
8 changed files with 30 additions and 52 deletions
|
@ -155,12 +155,6 @@ func main() {
|
|||
minutes := uint(preformatted.(float64)/60) % 60
|
||||
hours := uint(preformatted.(float64) / 60 / 60)
|
||||
formatted = fmt.Sprintf("%02d:%02d:%02d", hours, minutes, seconds)
|
||||
case "friendly_name":
|
||||
if len(preformatted.(string)) > 32 {
|
||||
formatted = fmt.Sprintf("%s...", preformatted.(string)[:32])
|
||||
} else {
|
||||
formatted = preformatted.(string)
|
||||
}
|
||||
default:
|
||||
formatted = fmt.Sprint(preformatted)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue