error counting, fix
This commit is contained in:
parent
1ca935742a
commit
c9acb92466
@ -66,7 +66,7 @@ abstract public class MbusDevice {
|
||||
}
|
||||
|
||||
public double getErrorRatio() {
|
||||
return this.errorCnt / this.successCnt;
|
||||
return this.errorCnt / (this.successCnt + this.errorCnt);
|
||||
}
|
||||
|
||||
public void parse(byte[] frame) throws MbusException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user