Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qstream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maalepaaler
qstream
Commits
9a0226e4
Commit
9a0226e4
authored
Jul 05, 2012
by
Jon Kåre Hellan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't call display_stats when endstream flag is set. Fixes double
printout problem. Debian version 0.4-6
parent
5be06e74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
qstream
qstream
+5
-5
No files found.
qstream
View file @
9a0226e4
...
...
@@ -153,14 +153,14 @@ $file_flag = 1 if $opt_filename;
$
SIG
{
USR2
}
=
sub
{
confess
"Caught by SIGUSR2"
;
};
$
SIG
{
INT
}
=
sub
{
$
uninterrupted
=
0
;
#
return
if
$
nint
++
<
1
;
&
display_stats
();
&
display_stats
()
if
!$endstream
;
&
end_xml
()
if
$
opt_xml
;
&
handle_threads
()
if
($
opt_tcp
and
$
opt_rtmp
);
die
"End after interrupt.
\n
"
;
exit
(
0
)
};
$
SIG
{
TERM
}
=
sub
{
$
uninterrupted
=
0
;
#
return
if
$
nkill
++
<
1
;
&
display_stats
();
&
display_stats
()
if
!$endstream
;
&
end_xml
()
if
$
opt_xml
;
&
handle_threads
()
if
($
opt_tcp
and
$
opt_rtmp
);
...
...
@@ -195,7 +195,7 @@ if ($opt_pcap || ($opt_tcp && !$opt_rtmp)){ # listen in parallell
$
uninterrupted
=
1
;
$
endstream
=
0
;
eat_pcap_streams
(@
streams
);
&
display_stats
()
if
!$opt_xml;
&
display_stats
()
if
!$opt_xml
and !$endstream
;
}
else
{
#
listen
serially
my
$
stream_count
;
#
my
$
ln
=
@
streams
;
...
...
@@ -218,7 +218,7 @@ if ($opt_pcap || ($opt_tcp && !$opt_rtmp)){ # listen in parallell
}
&list_flows if $opt_list;
&display_stats() if $opt_sum;
&display_stats() if $opt_sum
and !$endstream
;
&display_bins if $opt_bins;
&end_xml() if $opt_xml;
...
...
@@ -1591,7 +1591,7 @@ sub pkt_stats {
if
($
interval
>
$
pinterval
){
&
mpeg_debug
()
if
$
opt_debug
;
&
display_stats
()
if
!$opt_rtmp;
&
display_stats
()
if
!$opt_rtmp
and !$endstream
;
&
init_stats
($
f
);
$
pinterval
=$
interval
;
$
pinterval
{$
f
}=$
interval
;
...
...
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