Added upload rate chart

This commit is contained in:
Luiz F Picolo 2021-11-03 21:33:38 -04:00
parent a99a2fe893
commit b25ad4371d

5
app.rb
View File

@ -17,6 +17,11 @@ get '/' do
{'name': 'Max Download Rate', 'data': Rate.extremes(:maximum, :download)}, {'name': 'Max Download Rate', 'data': Rate.extremes(:maximum, :download)},
{'name': 'Min Download Rate', 'data': Rate.extremes(:minimum, :download)}, {'name': 'Min Download Rate', 'data': Rate.extremes(:minimum, :download)},
{'name': 'Everage Download Rate', 'data': Rate.extremes(:average, :download)} {'name': 'Everage Download Rate', 'data': Rate.extremes(:average, :download)}
@upload_rate = [
{'name': 'Max', 'data': Rate.extremes(:maximum, :upload)},
{'name': 'Min', 'data': Rate.extremes(:minimum, :upload)},
{'name': 'Everage', 'data': Rate.extremes(:average, :upload)}
] ]
erb :home erb :home