Skip to content

Commit

Permalink
Fix diff.
Browse files Browse the repository at this point in the history
  • Loading branch information
cinar committed Jan 14, 2022
1 parent 9bc86fa commit d2082c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func substract(values1, values2 []float64) []float64 {

// Difference between current and before values.
func diff(values []float64, before int) []float64 {
return substract(values, shiftRight(1, values))
return substract(values, shiftRight(before, values))
}

// Percent difference between current and before values.
Expand Down

0 comments on commit d2082c2

Please sign in to comment.