Commit d375353b authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent cdd88bd1
...@@ -75,7 +75,7 @@ function run(data, config,risk) { ...@@ -75,7 +75,7 @@ function run(data, config,risk) {
} }
let newLevel=[] let newLevel=[]
for (let i=0;i<maxLevel;i++) for (let i=0;i<(maxLevel+1);i++)
{ {
let count=counter(i,levels) let count=counter(i,levels)
newLevel.push({level:i,count:count}) newLevel.push({level:i,count:count})
...@@ -160,7 +160,7 @@ function run(data, config,risk) { ...@@ -160,7 +160,7 @@ function run(data, config,risk) {
function counter(count,array) function counter(count,array)
{ {
let sum=0 let sum=0
for (let i=0;i<array;i++) for (let i=0;i<array.length;i++)
if (array[i] === count) if (array[i] === count)
sum++ sum++
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment