Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Jun 26, 2021
1 parent 84a358c commit d82e754
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
14 changes: 2 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,16 @@ gen

### C template
# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.so.*
Expand Down Expand Up @@ -93,3 +81,5 @@ dkms.conf
# Project exclude paths
/cmake-build-*/

test/

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=UA2F
PKG_VERSION:=3.7
PKG_RELEASE:=12
PKG_RELEASE:=13

PKG_LICENSE:=GPL-3.0-only
PKG_LICENSE_FILE:=LICENSE
Expand Down
6 changes: 3 additions & 3 deletions src/ua2f.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static long long UAcount = 0;
static long long tcpcount = 0;
static long long UAmark = 0;
static long long noUAmark = 0;
static long long oldhttpcount = 4;
static long long httpcount = 4;

static time_t start_t, current_t;

Expand Down Expand Up @@ -338,8 +338,8 @@ static int queue_cb(const struct nlmsghdr *nlh, void *data) {

debugflag++; //flag6 / 10

if (UAcount / oldhttpcount == 2 || UAcount - oldhttpcount >= 8192) {
oldhttpcount = UAcount;
if (UAcount / httpcount == 2 || UAcount - httpcount >= 8192) {
httpcount = UAcount;
current_t = time(NULL);
syslog(LOG_INFO,
"UA2F has handled %lld ua http, %lld tcp. Set %lld mark and %lld noUA mark in %s",
Expand Down

0 comments on commit d82e754

Please sign in to comment.