diff --git a/lib/towerops_web/live/device_live/show.ex b/lib/towerops_web/live/device_live/show.ex index 72caaf85..893de4bb 100644 --- a/lib/towerops_web/live/device_live/show.ex +++ b/lib/towerops_web/live/device_live/show.ex @@ -398,8 +398,8 @@ defmodule ToweropsWeb.DeviceLive.Show do out_data = calculate_bps_data(all_stats, :outbound) datasets = [ - %{label: "Inbound", data: in_data}, - %{label: "Outbound", data: out_data} + %{label: "Outbound", data: out_data}, + %{label: "Inbound", data: in_data} ] Jason.encode!(%{datasets: datasets}) @@ -414,7 +414,7 @@ defmodule ToweropsWeb.DeviceLive.Show do %{ x: DateTime.to_unix(t2, :millisecond), - y: -bps + y: bps } end) end @@ -428,7 +428,7 @@ defmodule ToweropsWeb.DeviceLive.Show do %{ x: DateTime.to_unix(t2, :millisecond), - y: bps + y: -bps } end) end