changed name of labels

This commit is contained in:
Luiz F Picolo 2021-11-03 21:35:11 -04:00
parent b25ad4371d
commit 0591c876ae

11
app.rb
View File

@ -9,14 +9,15 @@ Time.now.utc.localtime("-04:00")
get '/' do get '/' do
@transfer_rate = [ @transfer_rate = [
{'name': 'Download Rate', 'data': Rate.transfer('download')}, {'name': 'Download', 'data': Rate.transfer('download')},
{'name': 'Upload Rate', 'data': Rate.transfer('upload')} {'name': 'Upload', 'data': Rate.transfer('upload')}
] ]
@download_rate = [ @download_rate = [
{'name': 'Max Download Rate', 'data': Rate.extremes(:maximum, :download)}, {'name': 'Max', 'data': Rate.extremes(:maximum, :download)},
{'name': 'Min Download Rate', 'data': Rate.extremes(:minimum, :download)}, {'name': 'Min', 'data': Rate.extremes(:minimum, :download)},
{'name': 'Everage Download Rate', 'data': Rate.extremes(:average, :download)} {'name': 'Everage', 'data': Rate.extremes(:average, :download)}
]
@upload_rate = [ @upload_rate = [
{'name': 'Max', 'data': Rate.extremes(:maximum, :upload)}, {'name': 'Max', 'data': Rate.extremes(:maximum, :upload)},