Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
lizhongxiao
OpenXG-RAN
Commits
6a1c7e57
Commit
6a1c7e57
authored
Nov 09, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: if old throughput, reinitialize to 0
parent
2285aae9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
common/utils/telnetsrv/telnetsrv_o1.c
common/utils/telnetsrv/telnetsrv_o1.c
+7
-1
No files found.
common/utils/telnetsrv/telnetsrv_o1.c
View file @
6a1c7e57
...
...
@@ -118,6 +118,12 @@ static int get_stats(char *buf, int debug, telnet_printfunc_t prnt)
UE_iterator
((
NR_UE_info_t
**
)
mac
->
UE_info
.
list
,
it
)
{
nr_rlc_statistics_t
rlc
=
{
0
};
nr_rlc_get_statistics
(
it
->
rnti
,
srb_flag
,
rb_id
,
&
rlc
);
// static var last_total: we might have old data, larger than what
// reports RLC, leading to a huge number -> cut off to zero
if
(
last_total
[
i
].
dl
>
rlc
.
txpdu_bytes
)
last_total
[
i
].
dl
=
rlc
.
txpdu_bytes
;
if
(
last_total
[
i
].
ul
>
rlc
.
rxpdu_bytes
)
last_total
[
i
].
ul
=
rlc
.
rxpdu_bytes
;
thr
[
i
].
dl
=
(
rlc
.
txpdu_bytes
-
last_total
[
i
].
dl
)
*
8
/
diff_msec
;
thr
[
i
].
ul
=
(
rlc
.
rxpdu_bytes
-
last_total
[
i
].
ul
)
*
8
/
diff_msec
;
last_total
[
i
].
dl
=
rlc
.
txpdu_bytes
;
...
...
@@ -187,7 +193,7 @@ static int get_stats(char *buf, int debug, telnet_printfunc_t prnt)
int
i
=
0
;
UE_iterator
((
NR_UE_info_t
**
)
mac
->
UE_info
.
list
,
it
)
{
if
(
!
first
)
{
prnt
(
", "
);
}
prnt
(
" {
\"
rnti
\"
: %d,
\"
dl
\"
: %
d,
\"
ul
\"
: %
d}
\n
"
,
it
->
rnti
,
thr
[
i
].
dl
,
thr
[
i
].
ul
);
prnt
(
" {
\"
rnti
\"
: %d,
\"
dl
\"
: %
ld,
\"
ul
\"
: %l
d}
\n
"
,
it
->
rnti
,
thr
[
i
].
dl
,
thr
[
i
].
ul
);
i
++
;
first
=
false
;
}
...
...
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