diff --git a/cmd/radiobench/radiobench.go b/cmd/radiobench/radiobench.go index 326437b1ba819b55537e1abb1da172ca94a56815..0da713130759d6bd5a5f8462feefbf1b44b96dc4 100644 --- a/cmd/radiobench/radiobench.go +++ b/cmd/radiobench/radiobench.go @@ -148,7 +148,7 @@ func worker(id int, streamUrl string) { for { err := readstream(id, streamUrl) log.Printf("worker(%d): %v", id, err) - time.Sleep(retryTime) + time.Sleep(randomDuration(retryTime)) } } diff --git a/node/bindata.go b/node/bindata.go index dfadcf5f91e2966187baf97fe8baa16f4c765591..2754c47c5ff8cf318a1c2a7737d767af7d097d76 100644 --- a/node/bindata.go +++ b/node/bindata.go @@ -579,8 +579,8 @@ var _templatesIndexHtml = []byte(`<!DOCTYPE html> <a href="http://{{$domain}}{{$m.Mount.Path}}" {{if $m.Mount.RelayUrl}} data-toggle="tooltip" data-delay="300" title="relay of {{$m.Mount.RelayUrl}}" - {{else if and $m.IcecastMount $m.IcecastMount.Description}} - data-toggle="tooltip" data-delay="300" title="{{$m.IcecastMount.Description}}" + {{else if $m.IcecastMount.GetDescription}} + data-toggle="tooltip" data-delay="300" title="{{$m.IcecastMount.GetDescription}}" {{end}} >{{$m.Mount.Path}}</a> <a href="http://{{$domain}}{{$m.Mount.Path}}.m3u">(m3u)</a> @@ -650,7 +650,7 @@ func templatesIndexHtml() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/index.html", size: 2909, mode: os.FileMode(420), modTime: time.Unix(1555197346, 0)} + info := bindataFileInfo{name: "templates/index.html", size: 2895, mode: os.FileMode(420), modTime: time.Unix(1555225167, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/node/templates/index.html b/node/templates/index.html index 654896c65c118ac53cb97a13a93d6bb38d634714..e2a4eb8aeea3a6ac6f649bebe8bea620c01c75f0 100644 --- a/node/templates/index.html +++ b/node/templates/index.html @@ -27,8 +27,8 @@ <a href="http://{{$domain}}{{$m.Mount.Path}}" {{if $m.Mount.RelayUrl}} data-toggle="tooltip" data-delay="300" title="relay of {{$m.Mount.RelayUrl}}" - {{else if and $m.IcecastMount $m.IcecastMount.Description}} - data-toggle="tooltip" data-delay="300" title="{{$m.IcecastMount.Description}}" + {{else if $m.IcecastMount.GetDescription}} + data-toggle="tooltip" data-delay="300" title="{{$m.IcecastMount.GetDescription}}" {{end}} >{{$m.Mount.Path}}</a> <a href="http://{{$domain}}{{$m.Mount.Path}}.m3u">(m3u)</a>