Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a632079 committed Apr 5, 2018
1 parent 68fd2fd commit 53aa44a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/controllers/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ async function getDayMap (now) {
const result = await Promise.all(events)
const data = []
data.push(now - parseInt(result[0]))
delete result[0]
for (let index = 0; index < (result.length - 1); index++) {
for (let index = 1; index < (result.length - 1); index++) {
data.push(parseInt(result[index]) - parseInt(result[index + 1]))
}
return data
Expand Down

0 comments on commit 53aa44a

Please sign in to comment.