Fixed linter errors
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
1e0cd49cf8
commit
357bb69257
@ -5,13 +5,11 @@ class Hardware < Sequel::Model(:hardware)
|
|||||||
|
|
||||||
one_to_many :results
|
one_to_many :results
|
||||||
|
|
||||||
def bench_results()
|
def bench_results
|
||||||
br = Hash.new()
|
br = {}
|
||||||
|
|
||||||
self.results.each do |r|
|
@results.each do |r|
|
||||||
unless br.key?(r.benchmark.name)
|
br[r.benchmark.name.to_s] = [] unless br.key?(r.benchmark.name)
|
||||||
br[r.benchmark.name.to_s] = []
|
|
||||||
end
|
|
||||||
|
|
||||||
br[r.benchmark.name.to_s].push(r.avg_score)
|
br[r.benchmark.name.to_s].push(r.avg_score)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user