Several status view fixes
Change-Id: I4118c40eeca6b4660bd1ca8f456c650ffb04a637
diff --git a/src/forwarder-status.cpp b/src/forwarder-status.cpp
index df203e5..80d6f63 100644
--- a/src/forwarder-status.cpp
+++ b/src/forwarder-status.cpp
@@ -83,20 +83,20 @@
{
beginResetModel();
m_items.clear();
- addItem(ForwarderStatusItem("Version", QString::fromStdString(status.getNfdVersion())));
- addItem(ForwarderStatusItem("Start Time", QString::fromStdString(time::toIsoString(status.getStartTimestamp()))));
- addItem(ForwarderStatusItem("Current Time", QString::fromStdString(time::toIsoString(status.getCurrentTimestamp()))));
- addItem(ForwarderStatusItem("Name Tree Entries", QString::number(status.getNNameTreeEntries())));
- addItem(ForwarderStatusItem("Fib Entries", QString::number(status.getNFibEntries())));
- addItem(ForwarderStatusItem("PitEntries", QString::number(status.getNPitEntries())));
- addItem(ForwarderStatusItem("Measurements Entries", QString::number(status.getNMeasurementsEntries())));
- addItem(ForwarderStatusItem("Content Store Entries", QString::number(status.getNCsEntries())));
- addItem(ForwarderStatusItem("Incoming Interests", QString::number(status.getNInInterests())));
- addItem(ForwarderStatusItem("Outgoing Interests", QString::number(status.getNOutInterests())));
- addItem(ForwarderStatusItem("Incoming Data", QString::number(status.getNInDatas())));
- addItem(ForwarderStatusItem("Outgoing Data", QString::number(status.getNOutDatas())));
- addItem(ForwarderStatusItem("Incoming Nacks", QString::number(status.getNInDatas())));
- addItem(ForwarderStatusItem("Outgoing Nacks", QString::number(status.getNOutDatas())));
+ addItem({"Version", status.getNfdVersion()});
+ addItem({"Start Time", status.getStartTimestamp()});
+ addItem({"Current Time", status.getCurrentTimestamp()});
+ addItem({"Name Tree Entries", status.getNNameTreeEntries()});
+ addItem({"Fib Entries", status.getNFibEntries()});
+ addItem({"PitEntries", status.getNPitEntries()});
+ addItem({"Measurements Entries", status.getNMeasurementsEntries()});
+ addItem({"Content Store Entries", status.getNCsEntries()});
+ addItem({"Incoming Interests", status.getNInInterests()});
+ addItem({"Outgoing Interests", status.getNOutInterests()});
+ addItem({"Incoming Data", status.getNInDatas()});
+ addItem({"Outgoing Data", status.getNOutDatas()});
+ addItem({"Incoming Nacks", status.getNInDatas()});
+ addItem({"Outgoing Nacks", status.getNOutDatas()});
endResetModel();
}