Commit 336e1517 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove deprecated method

parent 0eddf065
......@@ -124,7 +124,7 @@ bool ProcessesATop::Private::loadHistoryFile(const QString &filename) {
historyOffsets.clear();
while( !atopLog.atEnd() && atopLog.read((char*)(&rr), sizeof(RawRecord)) == sizeof(RawRecord) ) {
historyOffsets << offset;
historyTimes << QPair<QDateTime,uint>(QDateTime::fromTime_t(rr.curtime), rr.interval);
historyTimes << QPair<QDateTime,uint>(QDateTime::fromSecsSinceEpoch(rr.curtime), rr.interval);
offset += sizeof(RawRecord) + rr.scomplen + rr.pcomplen;
atopLog.seek(offset);
}
......@@ -146,7 +146,7 @@ bool ProcessesATop::Private::loadDataForHistory(int index)
return false;
}
if( historyTimes.at(index).first != QDateTime::fromTime_t(rr.curtime) ||
if( historyTimes.at(index).first != QDateTime::fromSecsSinceEpoch(rr.curtime) ||
historyTimes.at(index).second != rr.interval) {
lastError = QStringLiteral("INTERNAL ERROR WITH loadDataForHistory");
ready = false;
......
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