Skip to content

Commit

Permalink
v13.0.3 - Work around erroneous storage usage reports
Browse files Browse the repository at this point in the history
- Implements workaround for erroneous storage usage reports by satellites to limit impact on storage usage and end of month estimate numbers
  • Loading branch information
ReneSmeekes authored May 17, 2023
1 parent 3975bc6 commit a610f29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion earnings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
version = "13.0.2"
version = "13.0.3"

from calendar import monthrange
from datetime import datetime
Expand Down Expand Up @@ -205,6 +205,7 @@ def formatSize(size):
FROM su.storage_usage su2
WHERE su1.satellite_id = su2.satellite_id
AND su2.timestamp < su1.timestamp
AND su2.interval_end_time <> '0001-01-01 00:00:00+00:00' /* ignore incomplete records */
ORDER BY timestamp DESC
LIMIT 1) sdt
FROM su.storage_usage su1)
Expand Down

0 comments on commit a610f29

Please sign in to comment.