Show port speed on port graphs, optionally set scale (#11858)

* Show ifSpeed on Graph
Drop ifHighSpeed, we really don't want to store that value.

* safer truth check

* Allow global setting and per-graph variable

* match surrounding case

* Style fixes

* Remove old function usage

* update schema

* remove some old usages

* cleanup more ifHighSpeed references

* update test data to remove ifHighSpeed

* fix down migration

* Add button on graph page
Change default
tweak wording
This commit is contained in:
Tony Murray
2021-08-23 06:47:44 -05:00
committed by GitHub
parent d8d0ccd03d
commit d74bb37971
447 changed files with 91 additions and 47438 deletions

View File

@@ -141,7 +141,7 @@ marker.bindPopup(title);
rl.id AS right_id,
rl.lat AS right_lat,
rl.lng AS right_lng,
sum(lp.ifHighSpeed) AS link_capacity,
sum(lp.ifSpeed) AS link_capacity,
sum(lp.ifOutOctets_rate) * 8 / sum(lp.ifSpeed) * 100 as link_out_usage_pct,
sum(lp.ifInOctets_rate) * 8 / sum(lp.ifSpeed) * 100 as link_in_usage_pct
FROM
@@ -187,7 +187,7 @@ marker.bindPopup(title);
rl.id AS right_id,
rl.lat AS right_lat,
rl.lng AS right_lng,
sum(lp.ifHighSpeed) AS link_capacity,
sum(lp.ifSpeed) AS link_capacity,
sum(lp.ifOutOctets_rate) * 8 / sum(lp.ifSpeed) * 100 as link_out_usage_pct,
sum(lp.ifInOctets_rate) * 8 / sum(lp.ifSpeed) * 100 as link_in_usage_pct
FROM
@@ -231,7 +231,7 @@ marker.bindPopup(title);
$icon = 'greenMarker';
$z_offset = 0;
$speed = $link['link_capacity'] / 1000;
$speed = $link['link_capacity'] / 1000000000;
if ($speed > 500000) {
$width = 20;
} else {