mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Refactored into a more manageable JS project.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
scripts=( index.js template.js )
|
||||
for script in "${scripts[@]}"
|
||||
do
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {subscribeWS} from "./ws";
|
||||
import {BitsPerSecondGauge} from "./graphs/bits_gauge.js";
|
||||
import {PacketsBar} from "./graphs/packets_bar";
|
||||
import {subscribeWS} from "./pubsub/ws";
|
||||
import {BitsPerSecondGauge} from "./graphs/bits_gauge";
|
||||
import {PacketsPerSecondBar} from "./graphs/packets_bar";
|
||||
|
||||
let tpbits = null;
|
||||
let tppackets = null;
|
||||
@@ -10,7 +10,7 @@ function onMessage(msg) {
|
||||
case "join": {
|
||||
if (msg.channel === "throughput") {
|
||||
tpbits = new BitsPerSecondGauge("tpBits");
|
||||
tppackets = new PacketsBar("tpPackets");
|
||||
tppackets = new PacketsPerSecondBar("tpPackets");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user