It works great after replacing the symbol CLK_TCK by CLOCKS_PER_SEC. 
void stats_print(void)
{
     struct timeval tmp;

     timeval_diff(&tmp, &s_stats.end_time, &s_stats.start_time);
     times(&s_stats.tms);
     s_stats.tms.tms_utime += s_stats.tms_thread.tms_utime;
     s_stats.tms.tms_stime += s_stats.tms_thread.tms_stime;

     logger(LOG_INFO, "  Load measurements:");
     logger(LOG_INFO, "   User: %8.3fs  Sys:%8.3fs",
            (double)(s_stats.tms.tms_utime) / CLOCKS_PER_SEC,
            (double)(s_stats.tms.tms_stime) / CLOCKS_PER_SEC);

I use it with UBCD4WIN over my network and it's OK

-- 
atftpd doesn't build from source
https://bugs.launchpad.net/bugs/119459
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to