Add last_guid to ProfileData.
This commit is contained in:
parent
c631e5c4fe
commit
a369e96177
|
@ -56,6 +56,7 @@ std::ostream &operator <<(std::ostream &out, const ProfileData &data)
|
||||||
out << "], "
|
out << "], "
|
||||||
<< "instance: \"" << data.instance << "\", "
|
<< "instance: \"" << data.instance << "\", "
|
||||||
<< "interval: " << data.interval << ", "
|
<< "interval: " << data.interval << ", "
|
||||||
|
<< "last_guid: \"" << data.last_guid << "\", "
|
||||||
<< "max_size: " << data.max_size << ", "
|
<< "max_size: " << data.max_size << ", "
|
||||||
<< "skip: [";
|
<< "skip: [";
|
||||||
for (const auto &skip : data.skip)
|
for (const auto &skip : data.skip)
|
||||||
|
@ -226,6 +227,7 @@ void Config::parse()
|
||||||
data.interval =
|
data.interval =
|
||||||
static_cast<uint32_t>(_json[_profile]["interval"].asUInt64());
|
static_cast<uint32_t>(_json[_profile]["interval"].asUInt64());
|
||||||
}
|
}
|
||||||
|
data.last_guid = _json[_profile]["last_guid"].asString();
|
||||||
if (!_json[_profile]["max_size"].isNull())
|
if (!_json[_profile]["max_size"].isNull())
|
||||||
{
|
{
|
||||||
data.max_size =
|
data.max_size =
|
||||||
|
|
|
@ -46,6 +46,7 @@ struct ProfileData
|
||||||
vector<string> fixes;
|
vector<string> fixes;
|
||||||
string instance;
|
string instance;
|
||||||
uint32_t interval{30};
|
uint32_t interval{30};
|
||||||
|
string last_guid;
|
||||||
uint32_t max_size{500};
|
uint32_t max_size{500};
|
||||||
vector<string> skip;
|
vector<string> skip;
|
||||||
bool titles_as_cw{false};
|
bool titles_as_cw{false};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user