Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
genieacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
genieacs
Commits
33891af8
Commit
33891af8
authored
Feb 18, 2025
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed pinging
parent
01363bfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
Makefile
Makefile
+1
-0
genieacs-1.2.5-ping_fix.patch
genieacs-1.2.5-ping_fix.patch
+14
-0
No files found.
Makefile
View file @
33891af8
...
@@ -5,6 +5,7 @@ all: acs-cwmp-service acs-fs-service acs-nbi-service acs-ui-service genieacs-con
...
@@ -5,6 +5,7 @@ all: acs-cwmp-service acs-fs-service acs-nbi-service acs-ui-service genieacs-con
swapon swap
swapon swap
tar
xf
genieacs-1.2.5.tar.gz
tar
xf
genieacs-1.2.5.tar.gz
patch
-Np1
-d
genieacs-1.2.5
<
genieacs-1.2.5-ping_fix.patch
cd
genieacs-1.2.5
&&
npm
install
cd
genieacs-1.2.5
&&
npm
install
cd
genieacs-1.2.5
&&
NODE_OPTIONS
=
"--max-old-space-size=3072"
npm run build
cd
genieacs-1.2.5
&&
NODE_OPTIONS
=
"--max-old-space-size=3072"
npm run build
...
...
genieacs-1.2.5-ping_fix.patch
0 → 100644
View file @
33891af8
diff -uNr genieacs-1.2.5/lib/ping.ts genieacs-1.2.5-ping_fix/lib/ping.ts
--- genieacs-1.2.5/lib/ping.ts 2021-03-13 10:06:19.000000000 +1030
+++ genieacs-1.2.5-ping_fix/lib/ping.ts 2025-02-18 13:28:13.045843292 +1030
@@ -39,8 +39,8 @@
switch (platform()) {
case "linux":
cmd = `ping -w 1 -i 0.2 -c 3 ${host}`;
- parseRegExp1 = /(\d+) packets transmitted, (\d+) received, ([\d.]+)% packet loss[^]*([\d.]+)\/([\d.]+)\/([\d.]+)\/([\d.]+)/;
- parseRegExp2 = /(\d+) packets transmitted, (\d+) received, ([\d.]+)% packet loss/;
+ parseRegExp1 = /(\d+) packets transmitted, (\d+) packets received, ([\d.]+)% packet loss[^]*([\d.]+)\/([\d.]+)\/([\d.]+)\/([\d.]+)/;
+ parseRegExp2 = /(\d+) packets transmitted, (\d+) packets received, ([\d.]+)% packet loss/;
break;
case "freebsd":
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment