Skip to content

Commit

Permalink
fix: str to int exception with frequency (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieathens authored Nov 27, 2024
1 parent 01950a9 commit 7646f43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def send_to_influx(stats, config):
'measurement': 'downstream_statistics',
'time': current_time,
'fields': {
'frequency': int(stats_down['frequency']),
'frequency': int(float(stats_down['frequency'])),
'power': float(stats_down['power']),
'snr': float(stats_down['snr']),
'corrected': int(stats_down['corrected']),
Expand All @@ -223,7 +223,7 @@ def send_to_influx(stats, config):
'measurement': 'upstream_statistics',
'time': current_time,
'fields': {
'frequency': int(stats_up['frequency']),
'frequency': int(float(stats_up['frequency'])),
'power': float(stats_up['power']),
'width': int(stats_up['width']),
},
Expand Down

0 comments on commit 7646f43

Please sign in to comment.