Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
openairinterface5G
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
26
Merge Requests
26
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
oai
openairinterface5G
Commits
d65d91dd
Commit
d65d91dd
authored
Feb 14, 2017
by
Thomas 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