Changeset 0e5fe65 for src/webapp/webservice/index.php
- Timestamp:
- Apr 28, 2017, 4:26:42 PM (10 years ago)
- 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. - File:
-
- 1 edited
-
src/webapp/webservice/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/webapp/webservice/index.php
rf553e71 r0e5fe65 16 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 17 */ 18 19 xdebug_start_trace();20 18 21 19 require_once(__DIR__ ."/inc/Config.php"); … … 45 43 46 44 $endTime = floor(time() / $interval) * $interval; 47 $startTime = $endTime - $period;45 $startTime = $endTime - $period; 48 46 $data = rrd_fetch($dbFile, array("AVERAGE", "--resolution", $interval, "--start", $startTime, "--end", $endTime)); 49 47 // $data = rrd_fetch($dbFile, array("AVERAGE", "--resolution", $interval, "--start", "-". $period, "--end", "start+". $period, "--align-start")); … … 68 66 // transform them into json format 69 67 $i = 0; 70 $last Time= -1;68 $lastValid = -1; 71 69 $keys = array_keys($data); 72 70 $keyTimeframes = $keys[0]; … … 190 188 } 191 189 192 xdebug_stop_trace();193 194 190 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
