Commit 8ae5ae18 authored by Volker Krause's avatar Volker Krause
Browse files

Provide usage time and start count in the new format

parent 06dd0ab5
......@@ -5,10 +5,9 @@
"aggregation": "numeric",
"elements": [
{
"name": "startCount",
"name": "value",
"type": "int"
}
]
}
]
......@@ -5,7 +5,7 @@
"aggregation": "numeric",
"elements": [
{
"name": "usageTime",
"name": "value",
"type": "int"
}
]
......
......@@ -179,8 +179,11 @@ QByteArray ProviderPrivate::jsonData() const
{
QJsonObject obj;
if (statisticsMode != Provider::NoStatistics) {
obj.insert(QStringLiteral("startCount"), startCount);
obj.insert(QStringLiteral("usageTime"), currentApplicationTime());
QJsonObject valueObj;
valueObj.insert(QStringLiteral("value"), startCount);
obj.insert(QStringLiteral("startCount"), valueObj);
valueObj.insert(QStringLiteral("value"), currentApplicationTime());
obj.insert(QStringLiteral("usageTime"), valueObj);
foreach (auto source, dataSources) {
if (statisticsMode < source->collectionMode())
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment