re-enabled flat buffers, fixed the latencyBandConfig serialization
This commit is contained in:
parent
5c98dcce6d
commit
cfc985cdf1
|
@ -36,21 +36,7 @@ struct LatencyBandConfig {
|
|||
|
||||
template <class Ar>
|
||||
void serialize(Ar& ar) {
|
||||
uint64_t bandsSize = (uint64_t)bands.size();
|
||||
serializer(ar, bandsSize);
|
||||
|
||||
if(ar.isDeserializing) {
|
||||
double band;
|
||||
for(uint64_t i = 0; i < bandsSize; i++) {
|
||||
serializer(ar, band);
|
||||
bands.insert(band);
|
||||
}
|
||||
}
|
||||
else {
|
||||
for(double band : bands) {
|
||||
serializer(ar, band);
|
||||
}
|
||||
}
|
||||
serializer(ar, bands);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
|
@ -968,7 +968,7 @@ int main(int argc, char* argv[]) {
|
|||
double fileIoTimeout = 0.0;
|
||||
bool fileIoWarnOnly = false;
|
||||
uint64_t rsssize = -1;
|
||||
bool useObjectSerializer = false;
|
||||
bool useObjectSerializer = true;
|
||||
|
||||
if( argc == 1 ) {
|
||||
printUsage(argv[0], false);
|
||||
|
|
Loading…
Reference in New Issue