Update go, dependencies and ci

This commit is contained in:
Jedri Visser
2023-03-03 21:25:55 +02:00
parent 574e832152
commit bf4716e8df
8 changed files with 353 additions and 258 deletions

View File

@@ -127,7 +127,7 @@ func (m *Munin) run() {
}
}
//Munin only samples once every 5 minutes so averages have to be calculated for some values.
// Munin only samples once every 5 minutes so averages have to be calculated for some values.
func calcMuninValues(m *muninData, newStatus *mk2driver.Mk2Info) {
m.timesUpdated++
m.status.OutCurrent += newStatus.OutCurrent

View File

@@ -1,7 +1,7 @@
package munin
import (
"io/ioutil"
"io"
"net/http"
"net/http/httptest"
"testing"
@@ -21,7 +21,7 @@ func TestServer(t *testing.T) {
if err != nil {
log.Fatal(err)
}
_, err = ioutil.ReadAll(res.Body)
_, err = io.ReadAll(res.Body)
res.Body.Close()
if err != nil {
log.Fatal(err)