~cjsmo/ampache/ampache

« back to all changes in this revision

Viewing changes to modules/plugins/StreamBandwidth/StreamBandwidth.plugin.php

  • Committer: Afterster
  • Date: 2015-11-07 07:09:23 UTC
  • mfrom: (3952.1.1)
  • Revision ID: git-v1:88b4662919026b030698448b7cdf6c8dc0cb9897
Merge branch 'Psy-Virus-develop' into develop

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
            $next_total += $media->size;
99
99
        }
100
100
        
101
 
        $graph = new Graph();
102
 
        $end_date = time();
103
 
        $start_date = $end_date - ($this->bandwidth_days * 86400);
 
101
        $graph         = new Graph();
 
102
        $end_date      = time();
 
103
        $start_date    = $end_date - ($this->bandwidth_days * 86400);
104
104
        $current_total = $graph->get_total_bandwidth($this->user_id, $start_date, $end_date);
105
105
        $next_total += $current_total;
106
106
        $max = $this->bandwidth_max * 1024 * 1024;