Skip to content

Commit 2cb774f

Browse files
authored
Update ConvertUtils.java
1 parent 63d30b9 commit 2cb774f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/lcl/lclmeasurementtool/Utils/ConvertUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class ConvertUtils {
1414
*/
1515
public static double toMbps(double MBps) {
1616
if (MBps < 0) {
17-
throw new IllegalArgumentException("the input parameter MBps should be greater than 0");
17+
throw new IllegalArgumentException("the input parameter MBps should be greater than or equal to 0");
1818
}
1919
return MBps * CONVERSION_RATE;
2020
}
@@ -28,7 +28,7 @@ public static double toMbps(double MBps) {
2828
*/
2929
public static double toMBps(double Mbps) {
3030
if (Mbps < 0) {
31-
throw new IllegalArgumentException("the input parameter Mbps should be greater than 0");
31+
throw new IllegalArgumentException("the input parameter Mbps should be greater than or equal to 0");
3232
}
3333
return Mbps / CONVERSION_RATE;
3434
}

0 commit comments

Comments
 (0)