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
@transfer_rate = [
{'name': 'Download Rate', 'data': Rate.transfer('download')},
{'name': 'Upload Rate', 'data': Rate.transfer('upload')}
{'name': 'Download', 'data': Rate.transfer('download')},
{'name': 'Upload', 'data': Rate.transfer('upload')}
]
@download_rate = [
{'name': 'Max Download Rate', 'data': Rate.extremes(:maximum, :download)},
{'name': 'Min Download Rate', 'data': Rate.extremes(:minimum, :download)},
{'name': 'Everage Download Rate', 'data': Rate.extremes(:average, :download)}
{'name': 'Max', 'data': Rate.extremes(:maximum, :download)},
{'name': 'Min', 'data': Rate.extremes(:minimum, :download)},
{'name': 'Everage', 'data': Rate.extremes(:average, :download)}
]
@upload_rate = [
{'name': 'Max', 'data': Rate.extremes(:maximum, :upload)},