Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_packet_totals(db_file, time_granularity="minute", outgoing_filter=None,
SELECT
batched_packets.packet_name,
SUM(batched_packets.amount) AS total_amount,
SUM(batched_packets.amount * batched_packets.size_bytes) / 1e6 AS total_mb,
SUM(batched_packets.size_bytes) / 1e6 AS total_mb,
strftime('{time_format}', datetime(batched_packets.collected_at / 1000, 'unixepoch')) AS time_period
FROM batched_packets
JOIN packet_bound ON batched_packets.packet_name = packet_bound.packet_name
Expand Down