Skip to content

Commit cc0aed8

Browse files
committed
improved appearance of the statistics page graph
1 parent f9562a1 commit cc0aed8

File tree

4 files changed

+13
-41
lines changed

4 files changed

+13
-41
lines changed

LICENSE

Lines changed: 0 additions & 29 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
WebCTRL is a trademark of Automated Logic Corporation. Any other trademarks mentioned herein are the property of their respective owners.
44

5-
Please see [documentation.md](./root/webapp/documentation.md). Note the third-party library <https://www.aboutsip.com/pktsio/> is used as a low-level PCAP file parser.
5+
Please see [documentation.md](./root/webapp/documentation.md). Note the third-party library https://www.aboutsip.com/pktsio/ is used as a low-level PCAP file parser.
66

77
## Add-On Installation
88

root/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<extension version="1">
22
<name>WiresharkAnalyzer</name>
33
<description>A monitoring tool designed to analyze traffic on BACnet/IP networks.</description>
4-
<version>0.1.1</version>
4+
<version>0.1.2</version>
55
<vendor>Automatic Controls Equipment Systems, Inc.</vendor>
66
</extension>

src/aces/webctrl/wireshark/resources/StatPage.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289
const x = xFn(time);
290290
ctx.moveTo(x,0);
291291
ctx.lineTo(x,h);
292-
time+=86400;
292+
time+=604800;
293293
}
294294
ctx.stroke();
295295
}
@@ -310,15 +310,16 @@
310310
}
311311
}
312312
ctx.stroke();
313-
ctx.fillStyle = "white";
314-
ctx.beginPath();
315-
for (var i = 0; i < xData.length; ++i) {
316-
const x = xxData[i];
317-
const y = yFn(lines[i][name]/(lines[i]["end"]-lines[i]["start"]));
318-
ctx.moveTo(x, y);
319-
ctx.arc(x, y, 2, 0, 2 * Math.PI);
320-
}
321-
ctx.fill();
313+
// Uncomment to draw a white dot at each data-point
314+
//ctx.fillStyle = "white";
315+
//ctx.beginPath();
316+
//for (var i = 0; i < xData.length; ++i) {
317+
// const x = xxData[i];
318+
// const y = yFn(lines[i][name]/(lines[i]["end"]-lines[i]["start"]));
319+
// ctx.moveTo(x, y);
320+
// ctx.arc(x, y, 2, 0, 2 * Math.PI);
321+
//}
322+
//ctx.fill();
322323
}
323324
graph.replaceChildren(canvas);
324325
}

0 commit comments

Comments
 (0)