Skip to content

Commit

Permalink
Merge pull request #104 from sanjiva/master
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
sanjiva authored Nov 13, 2019
2 parents d3c1837 + b5626e5 commit b2c9cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributor/src/distributor/save.bal
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ function addToCumulative (map<json> jm) {
accum.by_party[i]["votes2nd"] = (accum.by_party[i]["votes2nd"] ?: 0) + <int>pr[i].votes2nd;
accum.by_party[i]["votes3rd"] = (accum.by_party[i]["votes3rd"] ?: 0) + <int>pr[i].votes3rd;
}
accum.by_party[i].percentage = (accum.summary.valid == 0) ? "0.00% : io:sprintf ("%.2f", ((accum.by_party[i].votes*100.0)/accum.summary.valid));
accum.by_party[i].percentage = (accum.summary.valid == 0) ? "0.00" : io:sprintf ("%.2f", ((accum.by_party[i].votes*100.0)/accum.summary.valid));
}
}
accum.nadded += 1;
Expand Down

0 comments on commit b2c9cad

Please sign in to comment.