Skip to content

Commit

Permalink
plot: reduce threshold to 60 secs
Browse files Browse the repository at this point in the history
  • Loading branch information
intaniger committed Nov 30, 2020
1 parent 211e2ab commit efee3a5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@

with open(outfile, "w") as out:
for point in data[start:]:
y = point["totalDevs"]
# y = sum(
# map(
# lambda ap: ap["associated_count"],
# filter(
# lambda a: a["signal"] > -50.0,
# point["aps"]
# )
# )
# )
# y = point["totalDevs"]
y = sum(
map(
lambda ap: ap["associated_count"],
filter(
lambda a: point["ts"] - a["last_seen"] < 60,
point["aps"]
)
)
)
out.write("%d\t%d\n" % (point["ts"], y))


Expand Down

0 comments on commit efee3a5

Please sign in to comment.