Commit 4ab3c552 authored by Ad Schellevis's avatar Ad Schellevis

(network insight, api) add bps as option in timeserieAction

parent 63168e1b
...@@ -94,6 +94,8 @@ class NetworkinsightController extends ApiControllerBase ...@@ -94,6 +94,8 @@ class NetworkinsightController extends ApiControllerBase
$measure_val = $payload['packets']; $measure_val = $payload['packets'];
} elseif ($measure == "octets_ps") { } elseif ($measure == "octets_ps") {
$measure_val = $payload['octets'] / $payload['resolution']; $measure_val = $payload['octets'] / $payload['resolution'];
} elseif ($measure == "bps") {
$measure_val = ($payload['octets'] / $payload['resolution']) * 8;
} elseif ($measure == "packets_ps") { } elseif ($measure == "packets_ps") {
$measure_val = $payload['packets'] / $payload['resolution']; $measure_val = $payload['packets'] / $payload['resolution'];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment