Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions StreamStats/StreamStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ function plot_log() {

// Load user setting
const bin_width = parseFloat(document.getElementById("WindowSize").value)
if (!(bin_width >= 0.1)) {
alert("Window size must be a number of at least 0.1 s")
return
}
const use_size = document.getElementById("Unit_bps").checked
const plot_labels = use_size ? rate_plot.bits : rate_plot.count

Expand Down Expand Up @@ -514,6 +518,10 @@ function load_tlog(log_file) {
function plot_tlog() {

const bin_width = parseFloat(document.getElementById("WindowSize").value)
if (!(bin_width >= 0.1)) {
alert("Window size must be a number of at least 0.1 s")
return
}
const use_size = document.getElementById("Unit_bps").checked

const plot_labels = use_size ? rate_plot.bits : rate_plot.count
Expand Down
Loading