Merge home and roaming stats file
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 12 Oct 2010 13:36:22 +0000 (15:36 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 12 Oct 2010 23:09:53 +0000 (01:09 +0200)
commitcf0919476b0a5c6bb779fdfdc62b037d774dfdd2
treec92154ca2cafc290cde065b9392b67d646c14035
parente4f22fd31d47a4b97a5cf07f9b1efb168d4cd95f
Merge home and roaming stats file

Instead creating for each service two stats file (home and roaming), just
create one. Each entry in the file is marked with a flag (home or roaming).

The file header contains two additional index which points to the current
home or roaming entry.

Now we have a nice history in the ring buffer.
Additionally this reduces the number of open files by half.
src/stats.c