Skip to content

Commit

Permalink
Rename var to
Browse files Browse the repository at this point in the history
  • Loading branch information
Ángel Guzmán Maeso committed Feb 18, 2012
1 parent da248a1 commit 113575f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hypervm/httpdocs/lib/vps/driver/vps__xenlib.php
Expand Up @@ -133,7 +133,7 @@ public static function find_traffic()
}
}

public static function get_bytes_for_interface($l)
public static function get_bytes_for_interface($interface = NULL)
{
static $net;

Expand All @@ -144,11 +144,11 @@ public static function get_bytes_for_interface($l)

foreach($net as $n) {
$n = trimSpaces($n);
if (!csb($n, "vif$l:")) {
if (!csb($n, "vif$interface:")) {
continue;
}

$n = strfrom($n, "vif$l:");
$n = strfrom($n, "vif$interface:");
$n = trimSpaces($n);
$b = explode(" ", $n);
$total = $b[0] + $b[8];
Expand Down

0 comments on commit 113575f

Please sign in to comment.