From: Stricted Date: Wed, 15 Jul 2015 18:48:04 +0000 (+0200) Subject: fix travis build X-Git-Tag: 1.0.1~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e87a43dffedd13e03fcc9e8334c6c531c8f75a6;p=GitHub%2FStricted%2Fspeedport-hybrid-php-api.git fix travis build --- diff --git a/rrd/rrd.php b/rrd/rrd.php index 6d161cd..6cd012f 100644 --- a/rrd/rrd.php +++ b/rrd/rrd.php @@ -3,10 +3,10 @@ $path = "/home/rrd/rrd/"; $password = 'your_router_password'; $url = 'http://speedport.ip/'; -if(!file_exists($path.'dsl.rrd')) { +if (!file_exists($path.'dsl.rrd')) { shell_exec('rrdtool create '.$path.'dsl.rrd --step 60 DS:uactual:GAUGE:120:0:100000 DS:dactual:GAUGE:120:0:200000 DS:uattainable:GAUGE:120:0:100000 DS:dattainable:GAUGE:120:0:200000 DS:uSNR:GAUGE:120:0:1000 DS:dSNR:GAUGE:120:0:1000 DS:uSignal:GAUGE:120:0:1000 DS:dSignal:GAUGE:120:0:200000 DS:uLine:GAUGE:120:0:2000 DS:dLine:GAUGE:120:0:2000 DS:uCRC:DERIVE:120:0:10000000 DS:dCRC:DERIVE:120:0:10000000 DS:uHEC:DERIVE:120:0:10000000 DS:dHEC:DERIVE:120:0:10000000 DS:uFEC:DERIVE:120:0:10000000 DS:dFEC:DERIVE:120:0:10000000 RRA:AVERAGE:0.5:1:2880 RRA:MAX:0.5:1:2880 RRA:AVERAGE:0.5:10:144 RRA:MAX:0.5:10:144'); } -if(!file_exists($path.'lteinfo.rrd')) { +if (!file_exists($path.'lteinfo.rrd')) { shell_exec('rrdtool create '.$path.'lteinfo.rrd --step 60 DS:rsrp:GAUGE:120:-200:0 DS:rsrq:GAUGE:120:-200:0 RRA:AVERAGE:0.5:1:2880 RRA:MAX:0.5:1:2880 RRA:AVERAGE:0.5:10:144 RRA:MAX:0.5:10:144'); }