[Aggregator] Swap timestamp and mobile MAC

To be consistent with what is read by owlps-positioning, the mobile MAC
address is now the first field of each line of the CSV file.
This commit is contained in:
Matteo Cypriani 2011-03-11 15:03:19 +01:00
parent c4f413b862
commit 5d8e907335
1 changed files with 6 additions and 6 deletions

View File

@ -470,12 +470,6 @@ void* monitor_couples()
putchar('\n') ;
#endif // DEBUG
#ifdef USE_TIMESTAMP
// Print request mobile timestamp to the output file
fprintf(fd, "%"PRIu64";",
owl_timestamp_to_ms(couple_ptr->request_time)) ;
#endif // USE_TIMESTAMP
// Print mobile MAC address to the output file
mac_string =
owl_mac_bytes_to_string(couple_ptr
@ -483,6 +477,12 @@ void* monitor_couples()
fprintf(fd, "%s;", mac_string) ;
free(mac_string) ;
#ifdef USE_TIMESTAMP
// Print request mobile timestamp to the output file
fprintf(fd, "%"PRIu64";",
owl_timestamp_to_ms(couple_ptr->request_time)) ;
#endif // USE_TIMESTAMP
// Print couple info to the output file
fprintf(fd, "%0.2f;%0.2f;%0.2f;%hhd",
couple_ptr->x_position, couple_ptr->y_position,