Changeset 44e62217a16765805c5a3ef8440375395d56e86c
- Timestamp:
- 26/05/08 09:28:39
(6 months ago)
- Author:
- Ilkka Ollakka <ileoo@videolan.org>
- git-committer:
- Ilkka Ollakka <ileoo@videolan.org> 1211786919 +0300
- git-parent:
[5dfbd013db078d191a24305df86006e6d47ff2a2]
- git-author:
- Ilkka Ollakka <ileoo@videolan.org> 1211289815 +0300
- Message:
modify logger-module rrd-output to use time for timestamp instead of mdate()
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r59dec65 |
r44e6221 |
|
| 87 | 87 | FILE *p_rrd; |
|---|
| 88 | 88 | mtime_t last_update; |
|---|
| | 89 | time_t now; /* timestamp for rrd-log */ |
|---|
| 89 | 90 | |
|---|
| 90 | 91 | FILE * p_file; /* The log file */ |
|---|
| … | … | |
| 443 | 444 | if( p_intf->p_libvlc->p_stats ) |
|---|
| 444 | 445 | { |
|---|
| | 446 | time(&p_intf->p_sys->now); |
|---|
| 445 | 447 | lldiv_t din = lldiv( p_intf->p_libvlc->p_stats->f_input_bitrate * 1000000, |
|---|
| 446 | 448 | 1000 ); |
|---|
| … | … | |
| 451 | 453 | fprintf( p_intf->p_sys->p_rrd, |
|---|
| 452 | 454 | "%"PRIi64":%lld.%03u:%lld.%03u:%lld.%03u\n", |
|---|
| 453 | | p_intf->p_sys->last_update/1000000, |
|---|
| | 455 | (uintmax_t)p_intf->p_sys->now, |
|---|
| 454 | 456 | din.quot, (unsigned int)din.rem, |
|---|
| 455 | 457 | ddm.quot, (unsigned int)ddm.rem, |
|---|