@@ 746-756 (lines=11) @@ | ||
743 | $was = false; |
|
744 | foreach ($lines as $line) { |
|
745 | if (preg_match("/^([^\s:]+)/", $line, $ar_buf)) { |
|
746 | if ($was) { |
|
747 | $dev->setErrors($errors); |
|
748 | $dev->setDrops($drops); |
|
749 | if ($macaddr != "") { |
|
750 | $dev->setInfo($macaddr.($dev->getInfo()?';'.$dev->getInfo():'')); |
|
751 | } |
|
752 | if ($speedinfo != "") { |
|
753 | $dev->setInfo(($dev->getInfo()?$dev->getInfo().';':'').$speedinfo); |
|
754 | } |
|
755 | $this->sys->setNetDevices($dev); |
|
756 | } |
|
757 | $errors = 0; |
|
758 | $drops = 0; |
|
759 | $speedinfo = ""; |
|
@@ 821-831 (lines=11) @@ | ||
818 | } |
|
819 | } |
|
820 | } |
|
821 | if ($was) { |
|
822 | $dev->setErrors($errors); |
|
823 | $dev->setDrops($drops); |
|
824 | if ($macaddr != "") { |
|
825 | $dev->setInfo($macaddr.($dev->getInfo()?';'.$dev->getInfo():'')); |
|
826 | } |
|
827 | if ($speedinfo != "") { |
|
828 | $dev->setInfo(($dev->getInfo()?$dev->getInfo().';':'').$speedinfo); |
|
829 | } |
|
830 | $this->sys->setNetDevices($dev); |
|
831 | } |
|
832 | } |
|
833 | } |
|
834 |