Commit a5cbc650 authored by Nigel Kukard's avatar Nigel Kukard

Return the right value, not Mbytes instead of Gbytes

parent 2f7c725d
......@@ -330,7 +330,7 @@ sub post_auth_hook
if (defined($config->{'enable_mikrotik'})) {
# Get remaining traffic
my $remainingTraffic = $alteredTrafficLimit - $accountingUsage->{'TotalDataUsage'};
my $remainingTrafficLimit = ( $remainingTraffic % 4096 ) * 1024;# * 1024;
my $remainingTrafficLimit = ( $remainingTraffic % 4096 ) * 1024 * 1024;
my $remainingTrafficGigawords = floor($remainingTraffic / 4096);
# Setup reply attributes for Mikrotik HotSpots
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment