Skip to content

Commit

Permalink
fix: properly sort monitors "time to next check" in table
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Mar 5, 2023
1 parent 065fec0 commit cb71ba7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/src/monitor-table-model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ QVariant MonitorTableModel::data(const QModelIndex &index, int role) const
return monitor.lastCheck();

case 7:
if (role == Qt::UserRole) {
return monitor.secsToNextCheck();
}
return timeToString(monitor.secsToNextCheck());

case 8:
Expand Down

0 comments on commit cb71ba7

Please sign in to comment.