1
0

patch-stats_c 741 B

1234567891011121314
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- atftp-0.7.orig/stats.c 2002-03-27 04:02:12.000000000 +0100
  3. +++ atftp-0.7/stats.c 2008-10-09 12:08:47.000000000 +0200
  4. @@ -157,8 +157,8 @@ void stats_print(void)
  5. logger(LOG_INFO, " Load measurements:");
  6. logger(LOG_INFO, " User: %8.3fs Sys:%8.3fs",
  7. - (double)(s_stats.tms.tms_utime) / CLK_TCK,
  8. - (double)(s_stats.tms.tms_stime) / CLK_TCK);
  9. + (double)(s_stats.tms.tms_utime) / CLOCKS_PER_SEC,
  10. + (double)(s_stats.tms.tms_stime) / CLOCKS_PER_SEC);
  11. logger(LOG_INFO, " Total:%8.3fs CPU:%8.3f%%",
  12. (double)(tmp.tv_sec + tmp.tv_usec * 1e-6),
  13. (double)(s_stats.tms.tms_utime + s_stats.tms.tms_stime) /