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
9c0e6694
Commit
9c0e6694
authored
Jun 03, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove spaces in histogram display
parent
166ec762
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
27 deletions
+27
-27
packet-exchange/src/client.c
packet-exchange/src/client.c
+9
-9
packet-exchange/src/server.c
packet-exchange/src/server.c
+18
-18
No files found.
packet-exchange/src/client.c
View file @
9c0e6694
...
...
@@ -266,15 +266,15 @@ static void print_histograms() {
interval
=
param
->
interval
/
1000
;
printf
(
"{
\"
measure_sets
\"
: [{
\
\"
measure_type
\"
:
\"
packet_send_timestamps
\"
,\
\"
props_names
\"
: [
\"
user_space
\"
,
\"
kernel_space
\"
],\
\"
units
\"
: [
\"
us
\"
,
\"
us
\"
],\
\"
props_type
\"
:
\"
histogram
\"
,\
\"
metadata
\"
: {\
\"
i
\"
:
\"
%dus
\"
,
\"
duration
\"
:
\"
%dh%d
\"
\
},\
\"
props
\"
: ["
,
interval
,
duration_hour
,
duration_minutes
);
printf
(
"{
\"
measure_sets
\"
: [{
"
"
\"
measure_type
\"
:
\"
packet_send_timestamps
\"
,"
"
\"
props_names
\"
: [
\"
user_space
\"
,
\"
kernel_space
\"
],"
"
\"
units
\"
: [
\"
us
\"
,
\"
us
\"
],"
"
\"
props_type
\"
:
\"
histogram
\"
,"
"
\"
metadata
\"
: {"
"
\"
i
\"
:
\"
%dus
\"
,
\"
duration
\"
:
\"
%dh%d
\"
"
"},"
"
\"
props
\"
: ["
,
interval
,
duration_hour
,
duration_minutes
);
int
max_hist_val
=
0
;
for
(
int
i
=
0
;
i
<
2
;
i
++
)
...
...
packet-exchange/src/server.c
View file @
9c0e6694
...
...
@@ -237,15 +237,15 @@ static void print_histograms() {
interval
=
(
param
->
stats
.
min_interval
+
param
->
stats
.
max_interval
)
/
2
;
printf
(
"{
\"
measure_sets
\"
: [{
\
\"
measure_type
\"
:
\"
packet_recv_timestamps
\"
,\
\"
props_names
\"
: [
\"
user_space
\"
,
\"
kernel_space
\"
],\
\"
units
\"
: [
\"
us
\"
,
\"
us
\"
],\
\"
props_type
\"
:
\"
histogram
\"
,\
\"
metadata
\"
: {\
\"
i
\"
:
\"
%dus
\"
,
\"
duration
\"
:
\"
%dh%d
\"
\
},\
\"
props
\"
: ["
,
interval
,
duration_hour
,
duration_minutes
);
printf
(
"{
\"
measure_sets
\"
: [{
"
"
\"
measure_type
\"
:
\"
packet_recv_timestamps
\"
,"
"
\"
props_names
\"
: [
\"
user_space
\"
,
\"
kernel_space
\"
],"
"
\"
units
\"
: [
\"
us
\"
,
\"
us
\"
],"
"
\"
props_type
\"
:
\"
histogram
\"
,"
"
\"
metadata
\"
: {"
"
\"
i
\"
:
\"
%dus
\"
,
\"
duration
\"
:
\"
%dh%d
\"
"
"},"
"
\"
props
\"
: ["
,
interval
,
duration_hour
,
duration_minutes
);
int
max_hist_val
=
0
;
for
(
int
i
=
0
;
i
<
2
;
i
++
)
...
...
@@ -260,15 +260,15 @@ static void print_histograms() {
printf
(
"%s"
,
(
i
+
1
<
2
?
"], "
:
"]"
));
}
printf
(
"]}, {
\
\"
measure_type
\"
:
\"
packet_jitter
\"
,\
\"
props_names
\"
: [
\"
jitter
\"
],\
\"
units
\"
: [
\"
us
\"
],\
\"
props_type
\"
:
\"
histogram
\"
,\
\"
metadata
\"
: {\
\"
i
\"
:
\"
%dus
\"
,
\"
duration
\"
:
\"
%dh%d
\"
\
},\
\"
props
\"
: [["
,
interval
,
duration_hour
,
duration_minutes
);
printf
(
"]}, {
"
"
\"
measure_type
\"
:
\"
packet_jitter
\"
,"
"
\"
props_names
\"
: [
\"
jitter
\"
],"
"
\"
units
\"
: [
\"
us
\"
],"
"
\"
props_type
\"
:
\"
histogram
\"
,"
"
\"
metadata
\"
: {"
"
\"
i
\"
:
\"
%dus
\"
,
\"
duration
\"
:
\"
%dh%d
\"
"
"},"
"
\"
props
\"
: [["
,
interval
,
duration_hour
,
duration_minutes
);
max_hist_val
=
0
;
for
(
int
j
=
0
;
j
<
MAX_HIST_VAL
&&
histograms
[
2
][
j
];
j
++
)
...
...
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