Skip to content

Commit

Permalink
[fix] Removed precision from Round() which is not support on Django 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy authored and nemesifier committed Feb 15, 2024
1 parent c4c4c15 commit 8570ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openwisp_radius/integrations/monitoring/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ def register_dashboard_charts(self):
},
'aggregate': {
'download_traffic': Round(
Cast(Sum('input_octets'), models.FloatField()) / 10**9, 1
Cast(Sum('input_octets'), models.FloatField()) / 10**9
),
'upload_traffic': Round(
Cast(Sum('output_octets'), models.FloatField()) / 10**9, 1
Cast(Sum('output_octets'), models.FloatField()) / 10**9
),
},
},
Expand Down

0 comments on commit 8570ad9

Please sign in to comment.