Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dcs_classifier
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
dcs_classifier
Commits
9ffcf56a
Commit
9ffcf56a
authored
Aug 05, 2015
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gen the checksum(s) string once
parent
17c6592b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gen_dcs_classifier.pl
src/gen/gen_dcs_classifier.pl
+3
-2
No files found.
src/gen/gen_dcs_classifier.pl
View file @
9ffcf56a
...
...
@@ -702,7 +702,8 @@ my %special_entries;
## build %common_subkeys
## build @entries, except that not all fields are filled
my
%
subkeys_count
;
my
$dbboilerplate
=
"checksum "
.
$dbchecksums
[
0
]
.
"\n"
;
my
$dbchecksum
=
join
(
", "
,
@dbchecksums
);
my
$dbboilerplate
=
"checksum "
.
$dbchecksum
.
"\n"
;
foreach
(
split
(
/[\n\r\f]/
,
$
{
$dbrefs
[
0
]}))
{
if
(
/^\s*#/
)
{
$dbboilerplate
.=
$_
.
"\n"
;
...
...
@@ -939,7 +940,7 @@ _VCL (F_CLASSIFIER_H, VCL_TOP, <<EOF);
#define DCS_CLASSIFIER_H 1
#include <stdint.h>
#define DCS_CHECKSUM "$dbchecksum
s[0]
"
#define DCS_CHECKSUM "$dbchecksum"
/* tunable */
#define DCS_MAX_NEGMATCH_CAND 32
...
...
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