Changeset 751
- Timestamp:
- Oct 5, 2015, 11:11:38 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r748 r751 1 1 <?php 2 2 3 $Revision = 7 48; // Subversion revision3 $Revision = 751; // Subversion revision 4 4 $DatabaseRevision = 748; // SQL structure revision 5 $ReleaseTime = strtotime('2015- 09-19');5 $ReleaseTime = strtotime('2015-10-04'); -
trunk/Modules/NetworkConfigRouterOS/Generators/Signal.php
r738 r751 39 39 } else $Interface = null; 40 40 41 $Parts = explode('@', $Properties['signal-strength']); 42 $Strength = substr($Parts[0], 0, -3); // without dBm 41 if(strpos($Properties['signal-strength'], '@') === false) 42 { 43 $Strength = $Properties['signal-strength']; 44 } else { 45 $Parts = explode('@', $Properties['signal-strength']); 46 if(substr($Parts[0], -3) == 'dBm') 47 $Strength = substr($Parts[0], 0, -3); // without dBm 48 else $Strength = $Parts[0]; 49 } 50 echo($Properties['signal-strength'].' '.$Strength."\n"); 43 51 $RateRx = substr($Properties['rx-rate'], 0, -3); // without MHz 44 52 $RateTx = substr($Properties['tx-rate'], 0, -3); // without MHz
Note:
See TracChangeset
for help on using the changeset viewer.