Skip to content

Commit

Permalink
Allow random battery level to reach 100
Browse files Browse the repository at this point in the history
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
  • Loading branch information
scop authored and sbernard31 committed Mar 31, 2017
1 parent 2a44239 commit b574a67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private long getErrorCode() {
}

private int getBatteryLevel() {
return RANDOM.nextInt(100);
return RANDOM.nextInt(101);
}

private int getMemoryFree() {
Expand Down

0 comments on commit b574a67

Please sign in to comment.