[Aggregator] Rename TIMESTAMP compilation option

The TIMESTAMP compilation-time option is now USE_TIMESTAMP.
This commit is contained in:
Matteo Cypriani 2011-03-10 14:28:29 +01:00
parent 10a47246f4
commit 3331a6685f
3 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ CFLAGS=-O2 -Wall -Wextra -Wstrict-prototypes -O -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS)
PICFLAG=-fPIC
OWLPSFLAGS = -D TIMESTAMP
OWLPSFLAGS = -D USE_TIMESTAMP
LIBS = -pthread -lconfuse -L../../libowlps -lowlps
LDFLAGS = $(LIBS) $(OWLPSFLAGS)

View File

@ -11,7 +11,7 @@
#define DEBUG
// Uncomment to output the timestamp on each line of the output file:
//#define TIMESTAMP
//#define USE_TIMESTAMP
/* Arguments & program configuration */

View File

@ -446,11 +446,11 @@ void* monitor_couples()
putchar('\n') ;
#endif // DEBUG
#ifdef TIMESTAMP
#ifdef USE_TIMESTAMP
// Print request mobile timestamp to the output file
fprintf(fd, "%llu;",
timeval_to_ms(couple_ptr->request_time)) ;
#endif // TIMESTAMP
#endif // USE_TIMESTAMP
// Print mobile MAC address to the output file
mac_string =