From 8bed54a4eb2bc3c0649b6c83393343aaa1210885 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 29 Apr 2012 16:05:45 +0200 Subject: [PATCH] Testing stuff --- frontend/test.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/test.php b/frontend/test.php index 2db307b..b7188c7 100644 --- a/frontend/test.php +++ b/frontend/test.php @@ -17,13 +17,16 @@ elseif($_GET['action'] == "stop") } elseif($_GET['action'] == "bw") { - $result = $sContainer->sNode->ssh->RunCommand("vzctl exec {$sContainer->sInternalId} cat /proc/net/dev", false); - $values = split_whitespace($result->stdout); - pretty_dump($values[1], $values[9]); + $result = $sContainer->sNode->ssh->RunCommand("vzctl exec {$sContainer->sInternalId} cat /proc/net/dev | grep venet0", false); + $lines = split_lines($result->stdout); + + $values = split_whitespace($lines[0]); + pretty_dump($values); } echo("Done!"); ?> +CVM test

Start
Stop