Changeset 44e62217a16765805c5a3ef8440375395d56e86c

Show
Ignore:
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
  • modules/misc/logger.c

    r59dec65 r44e6221  
    8787    FILE *p_rrd; 
    8888    mtime_t last_update; 
     89    time_t now;  /* timestamp for rrd-log */ 
    8990 
    9091    FILE *    p_file; /* The log file */ 
     
    443444    if( p_intf->p_libvlc->p_stats ) 
    444445    { 
     446        time(&p_intf->p_sys->now); 
    445447        lldiv_t din = lldiv( p_intf->p_libvlc->p_stats->f_input_bitrate * 1000000, 
    446448                             1000 ); 
     
    451453        fprintf( p_intf->p_sys->p_rrd, 
    452454                   "%"PRIi64":%lld.%03u:%lld.%03u:%lld.%03u\n", 
    453                    p_intf->p_sys->last_update/1000000
     455                   (uintmax_t)p_intf->p_sys->now
    454456                   din.quot, (unsigned int)din.rem, 
    455457                   ddm.quot, (unsigned int)ddm.rem,