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>
|
template <class Ar>
|
||||||
void serialize(Ar& ar) {
|
void serialize(Ar& ar) {
|
||||||
uint64_t bandsSize = (uint64_t)bands.size();
|
serializer(ar, bands);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -968,7 +968,7 @@ int main(int argc, char* argv[]) {
|
||||||
double fileIoTimeout = 0.0;
|
double fileIoTimeout = 0.0;
|
||||||
bool fileIoWarnOnly = false;
|
bool fileIoWarnOnly = false;
|
||||||
uint64_t rsssize = -1;
|
uint64_t rsssize = -1;
|
||||||
bool useObjectSerializer = false;
|
bool useObjectSerializer = true;
|
||||||
|
|
||||||
if( argc == 1 ) {
|
if( argc == 1 ) {
|
||||||
printUsage(argv[0], false);
|
printUsage(argv[0], false);
|
||||||
|
|
Loading…
Reference in New Issue