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 committed Nov 13, 2023
1 parent dc6c992 commit e0a7266
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 e0a7266

Please sign in to comment.