|
a/src/utils/circache.cpp |
|
b/src/utils/circache.cpp |
|
... |
|
... |
365 |
string value;
|
365 |
string value;
|
366 |
if (!conf.get("maxsize", value, cstr_null)) {
|
366 |
if (!conf.get("maxsize", value, cstr_null)) {
|
367 |
m_reason << "readfirstblock: conf get maxsize failed";
|
367 |
m_reason << "readfirstblock: conf get maxsize failed";
|
368 |
return false;
|
368 |
return false;
|
369 |
}
|
369 |
}
|
370 |
m_maxsize = atol(value.c_str());
|
370 |
m_maxsize = atoll(value.c_str());
|
371 |
if (!conf.get("oheadoffs", value, cstr_null)) {
|
371 |
if (!conf.get("oheadoffs", value, cstr_null)) {
|
372 |
m_reason << "readfirstblock: conf get oheadoffs failed";
|
372 |
m_reason << "readfirstblock: conf get oheadoffs failed";
|
373 |
return false;
|
373 |
return false;
|
374 |
}
|
374 |
}
|
375 |
m_oheadoffs = atol(value.c_str());
|
375 |
m_oheadoffs = atoll(value.c_str());
|
376 |
if (!conf.get("nheadoffs", value, cstr_null)) {
|
376 |
if (!conf.get("nheadoffs", value, cstr_null)) {
|
377 |
m_reason << "readfirstblock: conf get nheadoffs failed";
|
377 |
m_reason << "readfirstblock: conf get nheadoffs failed";
|
378 |
return false;
|
378 |
return false;
|
379 |
}
|
379 |
}
|
380 |
m_nheadoffs = atol(value.c_str());
|
380 |
m_nheadoffs = atoll(value.c_str());
|
381 |
if (!conf.get("npadsize", value, cstr_null)) {
|
381 |
if (!conf.get("npadsize", value, cstr_null)) {
|
382 |
m_reason << "readfirstblock: conf get npadsize failed";
|
382 |
m_reason << "readfirstblock: conf get npadsize failed";
|
383 |
return false;
|
383 |
return false;
|
384 |
}
|
384 |
}
|
385 |
m_npadsize = atol(value.c_str());
|
385 |
m_npadsize = atoll(value.c_str());
|
386 |
if (!conf.get("unient", value, cstr_null)) {
|
386 |
if (!conf.get("unient", value, cstr_null)) {
|
387 |
m_uniquentries = false;
|
387 |
m_uniquentries = false;
|
388 |
} else {
|
388 |
} else {
|
389 |
m_uniquentries = stringToBool(value);
|
389 |
m_uniquentries = stringToBool(value);
|
390 |
}
|
390 |
}
|