matemat: truncate statistics for existing influxdb schema

This commit is contained in:
Astro 2021-03-06 02:48:57 +01:00
parent f996f06083
commit 77c864b4d7
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ points = []
data = JSON.parse open("https://#{HOST}/statistics.json", :http_basic_authentication => [USER, PASSWORD]).read()
points.push({
series: 'statistics',
values: data,
values: data.map { |(n, i)| [n, i.to_i] },
})
data = JSON.parse open("http://#{HOST}/summary.json", :http_basic_authentication => [USER, PASSWORD]).read()