Changeset 147
- Timestamp:
- 07/18/06 02:11:25 (2 years ago)
- Files:
-
- trunk/src/main.c (modified) (2 diffs)
- trunk/src/main.h (modified) (2 diffs)
- trunk/src/swaps.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main.c
r143 r147 48 48 49 49 char localbuf[16384]; 50 time_t clock = 0;50 time_t runclock = 0; 51 51 52 52 /// Have we received a kill/HUP/power signal? … … 459 459 460 460 // Central loop 461 for (++ clock; !stop; ++clock)461 for (++runclock; !stop; ++runclock) 462 462 { 463 463 if (print_status) print_status = false, dump_stats(); trunk/src/main.h
r143 r147 22 22 #define SWAPSPACE_MAIN_H 23 23 24 #include < sys/param.h>24 #include <time.h> 25 25 26 26 /// I thought C99 had this built in... Maybe I'm doing something wrong. … … 45 45 46 46 /// Timestamp counter 47 extern time_t clock;47 extern time_t runclock; 48 48 49 49 /// Is the swapdir on a filesystem large enough for useful swap files? trunk/src/swaps.c
r143 r147 212 212 void dump_stats(void) 213 213 { 214 logm(LOG_INFO, "clock: %lld", (long long) clock);214 logm(LOG_INFO, "clock: %lld", (long long)runclock); 215 215 216 216 dump_state(); … … 596 596 if (!quiet) logm(LOG_NOTICE, "Detected swapfile '%d'", result->seqno); 597 597 #endif 598 swapfiles[result->seqno].created = clock;598 swapfiles[result->seqno].created = runclock; 599 599 } 600 600 #ifndef NO_CONFIG
