mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 02:03:09 +02:00
fix: server metrics widget
This commit is contained in:
parent
121a1784a2
commit
118f354661
1 changed files with 4 additions and 4 deletions
|
@ -94,10 +94,10 @@ function onStats(connStats) {
|
||||||
inPolygonPoints = `${viewBoxX - (stats.length - 1)},${viewBoxY} ${inPolylinePoints} ${viewBoxX},${viewBoxY}`;
|
inPolygonPoints = `${viewBoxX - (stats.length - 1)},${viewBoxY} ${inPolylinePoints} ${viewBoxX},${viewBoxY}`;
|
||||||
outPolygonPoints = `${viewBoxX - (stats.length - 1)},${viewBoxY} ${outPolylinePoints} ${viewBoxX},${viewBoxY}`;
|
outPolygonPoints = `${viewBoxX - (stats.length - 1)},${viewBoxY} ${outPolylinePoints} ${viewBoxX},${viewBoxY}`;
|
||||||
|
|
||||||
inHeadX = inPolylinePoints[inPolylinePoints.length - 1][0];
|
inHeadX = inPolylinePointsStats[inPolylinePointsStats.length - 1][0];
|
||||||
inHeadY = inPolylinePoints[inPolylinePoints.length - 1][1];
|
inHeadY = inPolylinePointsStats[inPolylinePointsStats.length - 1][1];
|
||||||
outHeadX = outPolylinePoints[outPolylinePoints.length - 1][0];
|
outHeadX = outPolylinePointsStats[outPolylinePointsStats.length - 1][0];
|
||||||
outHeadY = outPolylinePoints[outPolylinePoints.length - 1][1];
|
outHeadY = outPolylinePointsStats[outPolylinePointsStats.length - 1][1];
|
||||||
|
|
||||||
inRecent = connStats.net.rx;
|
inRecent = connStats.net.rx;
|
||||||
outRecent = connStats.net.tx;
|
outRecent = connStats.net.tx;
|
||||||
|
|
Loading…
Reference in a new issue