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
Bjørn Villa
qstream
Commits
5f112496
Commit
5f112496
authored
Jul 13, 2012
by
paalmm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quickfix
parent
b1c5cab5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
qstream
qstream
+16
-15
No files found.
qstream
View file @
5f112496
...
...
@@ -173,6 +173,7 @@ $SIG{TERM} = sub { $uninterrupted=0; # return if $nkill++ < 1;
$
SIG
{
ALRM
}
=
sub
{
#
Writes
stats
to
file
if
option
XML
is
given
.
-
PMM
#
die
"No packets received"
if
$
n_packets
<
1
;
print
"alarmen går !
\n
"
;
$
uninterrupted
=
0
;
if
(! $endstream) { # Changed logic 20120706:1007 CDT
$endstream=1;
...
...
@@ -1583,7 +1584,8 @@ sub pkt_stats {
$
setuptime
{$
f
}=
tv_interval
(
$
tjoined
{$
f
},
$
tstart
{$
f
})
*
10
**
3
;
}
printf
"setup $f : %.3f
\n
"
,
$
setuptime
{$
f
}
if
$
opt_debug
;
alarm
($
opt_last
)
if
$
opt_last
;
#
print
"hei hei
\n
"
;
#
alarm
($
opt_last
)
if
$
opt_last
;
}
}
$
tend
{$
f
}
=
$
tc
;
...
...
@@ -1664,22 +1666,21 @@ sub pkt_stats {
&
burst
($
f
);
}
if
($
opt_period
){
my
$
span
=$
last_us
{$
f
}-$
first_us
{$
f
};
my
$
tmp2
=
$
span
/
10
**
6
;
if
($
tmp2
>
$
opt_period
){
&
mpeg_debug
()
if
$
opt_debug
;
&
display_stats
()
if
!$endstream;
&
init_stats
($
f
);
$
pinterval
=$
interval
;
$
pinterval
{$
f
}=$
interval
;
$
endstream
=
$
opt_nperiod
&&
$
interval
>=
$
opt_nperiod
;
$
interval
=
int
($
us
/
10
**
6
/
$
opt_period
);
if
($
interval
>
$
pinterval
){
&
mpeg_debug
()
if
$
opt_debug
;
&
display_stats
()
if
!$endstream;
&
init_stats
($
f
);
$
pinterval
=$
interval
;
$
pinterval
{$
f
}=$
interval
;
$
endstream
=
$
opt_nperiod
&&
$
interval
>=
$
opt_nperiod
;
}
$
pus
=$
us
;
$
psec
=$
sec
;
$
pmtime
{$
f
}=$
mtime
{$
f
}
if
$
opt_rtp
||
$
opt_crude
;
$
pseq_num
{$
f
}=
$
seq_num
{$
f
}
if
$
opt_rtp
||
$
opt_crude
;
$
pus
{$
f
}=$
us
;
}
$
pus
=$
us
;
$
psec
=$
sec
;
$
pmtime
{$
f
}=$
mtime
{$
f
}
if
$
opt_rtp
||
$
opt_crude
;
$
pseq_num
{$
f
}=
$
seq_num
{$
f
}
if
$
opt_rtp
||
$
opt_crude
;
$
pus
{$
f
}=$
us
;
}
#
of
pkt_stats
sub
do_math
{
...
...
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