Changeset 81f6c2e in network-demos


Ignore:
Timestamp:
Feb 12, 2010, 5:38:30 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master, network-demos-4-10-branch
Children:
aab5c26, ef619c3
Parents:
0fe6b0d
Message:

2010-02-12 Joel Sherrill <joel.sherrill@…>

  • ttcp/rtems_ttcp.c: Update timeval usage.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r0fe6b0d r81f6c2e  
     12010-02-12      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * ttcp/rtems_ttcp.c: Update timeval usage.
     4
    152009-11-13      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • ttcp/rtems_ttcp.c

    r0fe6b0d r81f6c2e  
    7272getrusage(int ignored, struct rusage *ru)
    7373{
    74         rtems_clock_time_value now;
     74        struct timeval now;
    7575        static struct rusage nullUsage;
    7676
    77         rtems_clock_get (RTEMS_CLOCK_GET_TIME_VALUE, &now);
     77        rtems_clock_get_tod_timeval( &now );
    7878        *ru = nullUsage;
    79         ru->ru_stime.tv_sec  = now.seconds;
    80         ru->ru_stime.tv_usec = now.microseconds;
     79        ru->ru_stime.tv_sec  = now.tv_sec;
     80        ru->ru_stime.tv_usec = now.tv_usec;
    8181        ru->ru_utime.tv_sec  = 0;
    8282        ru->ru_utime.tv_usec = 0;
Note: See TracChangeset for help on using the changeset viewer.