Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
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
nexedi
tsn-measures
Commits
44a99d81
Commit
44a99d81
authored
Sep 24, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print min max and avg in diff_ts histogram
Fix mistake in print_histogram function
parent
9ef4fea2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
packet-exchange/src/client.c
packet-exchange/src/client.c
+1
-1
packet-exchange/src/server.c
packet-exchange/src/server.c
+8
-5
No files found.
packet-exchange/src/client.c
View file @
44a99d81
...
...
@@ -435,7 +435,7 @@ static void print_histograms() {
printf
(
"# Packet TX timestamps histogram
\n
"
);
for
(
int
j
=
0
;
j
<
max_hist_val
;
j
++
)
for
(
int
j
=
0
;
j
<
=
max_hist_val
;
j
++
)
printf
(
"%06d %015"
PRIi64
"
\n
"
,
j
,
histogram
[
j
]);
printf
(
...
...
packet-exchange/src/server.c
View file @
44a99d81
...
...
@@ -497,13 +497,16 @@ static void print_histograms() {
max_latency
=
histogram_max
(
diff_ts_hist
,
MAX_DIFF_TS
-
1
);
for
(
int
j
=
0
;
j
<
max_latency
;
j
++
)
for
(
int
j
=
0
;
j
<
=
max_latency
;
j
++
)
printf
(
" %06d %015"
PRIi64
"
\n
"
,
j
,
diff_ts_hist
[
j
]);
printf
(
"# Duration: %dh%d
\n
"
"# Lost packets: %"
PRIu64
"
\n
"
,
duration_hour
,
duration_minutes
,
high_diff_ts
);
"# Lost packets: %"
PRIu64
"
\n
"
"# Min: %"
PRIi64
"
\n
"
"# Max: %"
PRIi64
"
\n
"
"# Avg: %"
PRIi64
"
\n
"
,
duration_hour
,
duration_minutes
,
high_diff_ts
,
min_diff_ts
,
max_diff_ts
,
avg_diff_ts
);
}
else
{
...
...
@@ -515,7 +518,7 @@ static void print_histograms() {
printf
(
"# Packet RX timestamps histogram
\n
"
);
for
(
int
j
=
0
;
j
<
max_latency
;
j
++
)
for
(
int
j
=
0
;
j
<
=
max_latency
;
j
++
)
printf
(
" %06d %015"
PRIi64
"
\n
"
,
j
,
kernel_latency_hist
[
j
]);
printf
(
...
...
@@ -527,7 +530,7 @@ static void print_histograms() {
printf
(
"# Packet jitter histogram
\n
"
);
for
(
int
j
=
min_jitter
;
j
<
max_jitter
;
j
++
)
for
(
int
j
=
min_jitter
;
j
<
=
max_jitter
;
j
++
)
printf
(
" %06d %015"
PRIi64
"
\n
"
,
j
,
jitter_hist
[
j
]);
printf
(
...
...
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