Skip to content

Commit

Permalink
automatic commit at releng box
Browse files Browse the repository at this point in the history
  • Loading branch information
mc36 committed Dec 27, 2024
1 parent 3401ad5 commit 88df1e9
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 51 deletions.
7 changes: 0 additions & 7 deletions src/org/freertr/prt/prtGen.java
Original file line number Diff line number Diff line change
Expand Up @@ -581,14 +581,7 @@ public void counterUpdate(ipFwdIface ifc, addrIP adr, int rem, int loc, counter
if (ntry == null) {
return;
}
counter old = ntry.hwCntr;
ntry.hwCntr = cntr;
if (old == null) {
old = new counter();
}
if (old.compareTo(ntry.hwCntr) == 0) {
return;
}
ntry.lastActivity = bits.getTime();
}

Expand Down
8 changes: 0 additions & 8 deletions src/org/freertr/serv/servP4langConn.java
Original file line number Diff line number Diff line change
Expand Up @@ -481,19 +481,11 @@ private boolean doReports() {
}
continue;
}
counter old = ntry.hwCntr;
ntry.hwCntr = new counter();
ntry.hwCntr.packRx = bits.str2long(cmd.word());
ntry.hwCntr.byteRx = bits.str2long(cmd.word());
ntry.hwCntr.packTx = bits.str2long(cmd.word());
ntry.hwCntr.byteTx = bits.str2long(cmd.word());
if (old == null) {
continue;
}
if (old.compareTo(ntry.hwCntr) >= 0) {
ntry.hwCntr = old;
continue;
}
ntry.time = bits.getTime();
continue;
}
Expand Down
32 changes: 0 additions & 32 deletions src/org/freertr/serv/servP4langUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,9 @@ protected final static void updateNatTrans(cmds cmd, ipFwd fwd) {
}
return;
}
counter old = ntry.hwCntr;
ntry.hwCntr = new counter();
ntry.hwCntr.packRx = bits.str2long(cmd.word());
ntry.hwCntr.byteRx = bits.str2long(cmd.word());
if (old == null) {
old = new counter();
}
if (old.compareTo(ntry.hwCntr) >= 0) {
ntry.hwCntr = old;
return;
}
ntry.lastUsed = bits.getTime();
ntry.reverse.lastUsed = ntry.lastUsed;
}
Expand Down Expand Up @@ -235,19 +227,11 @@ protected final static void updateInsp(cmds cmd, tabSession insp) {
}
}
ntry = res;
counter old = ntry.hwCntr;
ntry.hwCntr = new counter();
ntry.hwCntr.packRx = bits.str2long(cmd.word());
ntry.hwCntr.byteRx = bits.str2long(cmd.word());
ntry.hwCntr.packTx = bits.str2long(cmd.word());
ntry.hwCntr.byteTx = bits.str2long(cmd.word());
if (old == null) {
old = new counter();
}
if (old.compareTo(ntry.hwCntr) >= 0) {
ntry.hwCntr = old;
return;
}
ntry.lastTime = bits.getTime();
}

Expand Down Expand Up @@ -329,17 +313,9 @@ protected final static void updatePbr(cmds cmd, tabListing<tabPbrN, addrIP> pbr)
if (ntry.rolledFrom != null) {
ntry = ntry.rolledFrom;
}
counter old = ntry.hwCntr;
ntry.hwCntr = new counter();
ntry.hwCntr.packRx = bits.str2long(cmd.word());
ntry.hwCntr.byteRx = bits.str2long(cmd.word());
if (old == null) {
old = new counter();
}
if (old.compareTo(ntry.hwCntr) >= 0) {
ntry.hwCntr = old;
return;
}
ntry.lastMatch = bits.getTime();
}

Expand All @@ -360,17 +336,9 @@ protected final static void updateAcl(cmds cmd, tabListing<tabAceslstN<addrIP>,
if (ntry.rolledFrom != null) {
ntry = ntry.rolledFrom;
}
counter old = ntry.hwCntr;
ntry.hwCntr = new counter();
ntry.hwCntr.packRx = bits.str2long(cmd.word());
ntry.hwCntr.byteRx = bits.str2long(cmd.word());
if (old == null) {
old = new counter();
}
if (old.compareTo(ntry.hwCntr) >= 0) {
ntry.hwCntr = old;
return;
}
ntry.lastMatch = bits.getTime();
}

Expand Down
2 changes: 1 addition & 1 deletion src/rtr.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
url;file;result;test
-;-;-;freeRouter v24.12.27-cur, done by sprscc13@mrn0b0dy.
-;-;-;2024-12-27 19:19:21, took 00:14:30, with 50 workers, on 3602 cases, 0 failed, 0 traces, 2 retries
-;-;-;2024-12-27 20:04:15, took 00:15:05, with 50 workers, on 3602 cases, 0 failed, 0 traces, 3 retries
-;-;-;./rtr.bin
http://sources.freertr.org/cfg/basic01.tst;basic01.tst;success;dummy test
http://sources.freertr.org/cfg/basic02.tst;basic02.tst;success;interface with slot
Expand Down
2 changes: 1 addition & 1 deletion src/rtr.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</style>
<title>tester</title></head><body>
release: freeRouter v24.12.27-cur, done by sprscc13@mrn0b0dy.<br/>
tested: 2024-12-27 19:19:21, took 00:14:30, with 50 workers, on 3602 cases, 0 failed, 0 traces, 2 retries<br/>
tested: 2024-12-27 20:04:15, took 00:15:05, with 50 workers, on 3602 cases, 0 failed, 0 traces, 3 retries<br/>
jvm: ./rtr.bin<br/>
<br/>
<table><thead><tr><td><b>file</b></td><td><b>result</b></td><td><b>test</b></td></tr></thead><tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/rtr8.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
url;file;result;test
-;-;-;freeRouter v24.12.27-cur, done by sprscc13@mrn0b0dy.
-;-;-;2024-12-27 19:30:09, took 00:10:27, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries
-;-;-;2024-12-27 20:16:51, took 00:12:14, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries
-;-;-;./rtr.bin
http://sources.freertr.org/cfg/p4lang-acl001.tst;p4lang-acl001.tst;success;p4lang: copp
http://sources.freertr.org/cfg/p4lang-acl002.tst;p4lang-acl002.tst;success;p4lang: ingress access list
Expand Down
2 changes: 1 addition & 1 deletion src/rtr8.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</style>
<title>tester</title></head><body>
release: freeRouter v24.12.27-cur, done by sprscc13@mrn0b0dy.<br/>
tested: 2024-12-27 19:30:09, took 00:10:27, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries<br/>
tested: 2024-12-27 20:16:51, took 00:12:14, with 50 workers, on 674 cases, 0 failed, 0 traces, 0 retries<br/>
jvm: ./rtr.bin<br/>
<br/>
<table><thead><tr><td><b>file</b></td><td><b>result</b></td><td><b>test</b></td></tr></thead><tbody>
Expand Down

0 comments on commit 88df1e9

Please sign in to comment.