Skip to content

Commit 5c9b1b5

Browse files
Update ASTFProgram.java
1 parent 7dac834 commit 5c9b1b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/cisco/trex/stateful/api/lowlevel/ASTFProgram.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public void recv(int bytes, boolean clear) {
345345
* @param clear
346346
*/
347347
public void recv(long bytes, boolean clear) {
348-
if(clear == true){
348+
if(clear){
349349
this.totalRcvBytes = 0;
350350
}
351351
this.totalRcvBytes += bytes;
@@ -391,7 +391,7 @@ public void recvMsg(int pkts, boolean clear) {
391391
* @param clear when reach the watermark clear the flow counter
392392
*/
393393
public void recvMsg(long pkts, boolean clear) {
394-
if(clear == true){
394+
if(clear){
395395
this.totalRcvBytes = 0;
396396
}
397397
this.totalRcvBytes += pkts;

0 commit comments

Comments
 (0)