Changeset 0e5fe65 for src/webapp


Ignore:
Timestamp:
Apr 28, 2017, 4:26:42 PM (10 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, debian/jessie
Children:
3d4f798
Parents:
f553e71 (diff), a9349cd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into debian/jessie

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/webapp/webservice/index.php

    rf553e71 r0e5fe65  
    1616    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717*/
    18 
    19 xdebug_start_trace();
    2018
    2119require_once(__DIR__ ."/inc/Config.php");
    … …  
    4543
    4644        $endTime = floor(time() / $interval) * $interval;
    47         $startTime = $endTime - $period;
     45        $startTime = $endTime - $period;
    4846        $data = rrd_fetch($dbFile, array("AVERAGE", "--resolution", $interval, "--start", $startTime, "--end", $endTime));
    4947        // $data = rrd_fetch($dbFile, array("AVERAGE", "--resolution", $interval, "--start", "-". $period, "--end", "start+". $period, "--align-start"));
    … …  
    6866        // transform them into json format
    6967        $i = 0;
    70         $lastTime = -1;
     68        $lastValid = -1;
    7169        $keys = array_keys($data);
    7270        $keyTimeframes = $keys[0];
    … …  
    190188}
    191189
    192 xdebug_stop_trace();
    193 
    194190?>
Note: See TracChangeset for help on using the changeset viewer.