Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dvblast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
dvblast
Commits
c445dada
Commit
c445dada
authored
Nov 14, 2011
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not enter mrtg functions if mrtg is disabled.
parent
2e49058d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
mrtg-cnt.c
mrtg-cnt.c
+4
-4
mrtg-cnt.h
mrtg-cnt.h
+1
-1
No files found.
mrtg-cnt.c
View file @
c445dada
...
@@ -77,11 +77,13 @@ static void dumpCounts()
...
@@ -77,11 +77,13 @@ static void dumpCounts()
// analyse the input block counting packets and errors
// analyse the input block counting packets and errors
// The input is a pointer to a block_t structure, which might be a linked list
// The input is a pointer to a block_t structure, which might be a linked list
// of blocks. Each block has one TS packet.
// of blocks. Each block has one TS packet.
int
mrtgAnalyse
(
block_t
*
p_ts
)
void
mrtgAnalyse
(
block_t
*
p_ts
)
{
{
unsigned
int
i_pid
;
unsigned
int
i_pid
;
block_t
*
p_block
=
p_ts
;
block_t
*
p_block
=
p_ts
;
if
(
mrtg_fh
==
NULL
)
return
;
while
(
p_block
!=
NULL
)
{
while
(
p_block
!=
NULL
)
{
uint8_t
*
ts_packet
=
p_block
->
p_ts
;
uint8_t
*
ts_packet
=
p_block
->
p_ts
;
...
@@ -155,8 +157,6 @@ int mrtgAnalyse(block_t * p_ts)
...
@@ -155,8 +157,6 @@ int mrtgAnalyse(block_t * p_ts)
}
}
mrtg_time
.
tv_sec
+=
MRTG_INTERVAL
;
mrtg_time
.
tv_sec
+=
MRTG_INTERVAL
;
}
}
return
0
;
}
}
int
mrtgInit
(
char
*
mrtg_file
)
int
mrtgInit
(
char
*
mrtg_file
)
...
...
mrtg-cnt.h
View file @
c445dada
...
@@ -27,6 +27,6 @@
...
@@ -27,6 +27,6 @@
int
mrtgInit
(
char
*
mrtg_file
);
int
mrtgInit
(
char
*
mrtg_file
);
void
mrtgClose
();
void
mrtgClose
();
int
mrtgAnalyse
(
block_t
*
p_ts
);
void
mrtgAnalyse
(
block_t
*
p_ts
);
#endif
#endif
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