Permalink
Browse files

Adapt traffic calculation to schema changes

  • Loading branch information...
Georgeto committed Feb 11, 2019
1 parent 145e7e6 commit bd159127119ac985577b6f7581ba5a1cc00abe00
Showing with 1 addition and 1 deletion.
  1. +1 −1 sipa/model/pycroft/user.py
@@ -78,7 +78,7 @@ def traffic_history(self):
'day': parse_date(entry.timestamp).weekday(),
'input': to_kib(entry.ingress),
'output': to_kib(entry.egress),
'throughput': to_kib(entry.ingress + entry.egress),
'throughput': to_kib(entry.ingress) + to_kib(entry.egress),
} for entry in self.user_data.traffic_history]

@active_prop

0 comments on commit bd15912

Please sign in to comment.