Skip to content

Commit

Permalink
Try showing all results in last 5 pings
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwanderer committed Jun 15, 2024
1 parent e704b51 commit ae7dde3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mnet/pmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_status_count(db):

def get_last_five(db) ->list[tuple[str,bool]]:
c = db.cursor()
q = c.execute("SELECT name, responded FROM targets WHERE total_count > 0 ORDER BY sample_time LIMIT 5")
q = c.execute("SELECT name, responded FROM targets ORDER BY sample_time LIMIT 5")
result = []
for name, responded in q.fetchall():
result.append((name, responded))
Expand Down

0 comments on commit ae7dde3

Please sign in to comment.