Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-2-2
Commits
44e62217
Commit
44e62217
authored
May 20, 2008
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify logger-module rrd-output to use time for timestamp instead of mdate()
parent
5dfbd013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/misc/logger.c
modules/misc/logger.c
+3
-1
No files found.
modules/misc/logger.c
View file @
44e62217
...
...
@@ -86,6 +86,7 @@ struct intf_sys_t
int
i_mode
;
FILE
*
p_rrd
;
mtime_t
last_update
;
time_t
now
;
/* timestamp for rrd-log */
FILE
*
p_file
;
/* The log file */
msg_subscription_t
*
p_sub
;
...
...
@@ -442,6 +443,7 @@ static void DoRRD( intf_thread_t *p_intf )
if
(
p_intf
->
p_libvlc
->
p_stats
)
{
time
(
&
p_intf
->
p_sys
->
now
);
lldiv_t
din
=
lldiv
(
p_intf
->
p_libvlc
->
p_stats
->
f_input_bitrate
*
1000000
,
1000
);
lldiv_t
ddm
=
lldiv
(
p_intf
->
p_libvlc
->
p_stats
->
f_demux_bitrate
*
1000000
,
...
...
@@ -450,7 +452,7 @@ static void DoRRD( intf_thread_t *p_intf )
1000
);
fprintf
(
p_intf
->
p_sys
->
p_rrd
,
"%"
PRIi64
":%lld.%03u:%lld.%03u:%lld.%03u
\n
"
,
p_intf
->
p_sys
->
last_update
/
1000000
,
(
uintmax_t
)
p_intf
->
p_sys
->
now
,
din
.
quot
,
(
unsigned
int
)
din
.
rem
,
ddm
.
quot
,
(
unsigned
int
)
ddm
.
rem
,
dout
.
quot
,
(
unsigned
int
)
dout
.
rem
);
...
...
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