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
常顺宇
OpenXG-RAN
Commits
d65d91dd
Commit
d65d91dd
authored
Feb 14, 2017
by
Laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc warning fix
parent
fa432bdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
openair2/UTIL/LOG/log.h
openair2/UTIL/LOG/log.h
+4
-4
No files found.
openair2/UTIL/LOG/log.h
View file @
d65d91dd
...
...
@@ -370,10 +370,10 @@ static inline uint64_t checkTCPU(int timeout, char * file, int line) {
double
microCycles
=
(
double
)(
cpuf
*
1000
);
int
duration
=
(
int
)((
cur
-
last
)
/
microCycles
);
if
(
last
!=
0
&&
duration
>
timeout
)
{
struct
timespec
ts
;
clock_gettime
(
CLOCK_MONOTONIC
,
&
ts
);
printf
(
"%
.3f %s:%d lte-ue delay %d (exceed %d), CPU for this period: %.2f
\n
"
,
ts
.
tv_sec
+
ts
.
tv_nsec
/
(
1000
*
1000
*
1000
.
0
)
,
file
,
line
,
duration
,
timeout
,
(
CPUTime
-
lastCPUTime
)
/
1000
.
0
);
//
struct timespec ts;
//
clock_gettime(CLOCK_MONOTONIC, &ts);
printf
(
"%
s:%d lte-ue delay %d (exceed %d), CPU for this period: %lld
\n
"
,
file
,
line
,
duration
,
timeout
,
(
long
long
)
CPUTime
-
lastCPUTime
);
}
last
=
cur
;
lastCPUTime
=
CPUTime
;
...
...
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