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
Michael Black
OpenXG-RAN
Commits
1ebcd1ed
Commit
1ebcd1ed
authored
Dec 27, 2021
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print LOG time as uptime
parent
a54323bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
common/utils/LOG/log.c
common/utils/LOG/log.c
+1
-4
No files found.
common/utils/LOG/log.c
View file @
1ebcd1ed
...
...
@@ -533,10 +533,7 @@ static inline int log_header(log_component_t *c,
if
(
flag
&
FLAG_TIME
)
{
struct
timespec
t
;
clock_gettime
(
CLOCK_MONOTONIC
,
&
t
);
static
double
tOrigin
=
0
;
if
(
tOrigin
==
0
)
tOrigin
=
t
.
tv_sec
+
t
.
tv_nsec
/
1.0e9
;
snprintf
(
timeString
,
sizeof
t
,
"%05.3f"
,
t
.
tv_sec
+
t
.
tv_nsec
/
1.0e9
-
tOrigin
);
snprintf
(
timeString
,
sizeof
t
,
"%05.3f"
,
t
.
tv_sec
+
t
.
tv_nsec
/
1.0e9
);
}
else
{
timeString
[
0
]
=
0
;
}
...
...
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