Browse Source

fix for the negative times in seconds.

pre-master-46
pnenzi 19 years ago
parent
commit
9eb9f56060
  1. 5
      ChangeLog
  2. 2
      src/misc/misc_time.c

5
ChangeLog

@ -1,3 +1,8 @@
2007-06-14 Paolo Nenzi <p.nenzi@ieee.org>
* src/misc/misc_time.c: added a casting to doube in seconds function to
solve the "negative times" in acct command.
2007-05-13 Paolo Nenzi <p.nenzi@ieee.org>
* src/spicelib/devices/dev.c: updated NUMDEV to reflect actual situation.

2
src/misc/misc_time.c

@ -104,7 +104,7 @@ seconds(void)
return (TCGTIME_());
#else
(void) getrusage(RUSAGE_SELF, &ruse);
return (ruse.ru_utime.tv_sec + (double) ruse.ru_utime.tv_usec / 1000000.0);
return ((double)ruse.ru_utime.tv_sec + (double) ruse.ru_utime.tv_usec / 1000000.0);
#endif /* PARALLEL_ARCH */
#else
#ifdef HAVE_TIMES

Loading…
Cancel
Save