Skip to content

Commit

Permalink
make load test default delay '0'
Browse files Browse the repository at this point in the history
  • Loading branch information
grant-g committed Feb 6, 2016
1 parent 684e7e0 commit 5157e51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions catalogLoadTest.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
timeCell.appendChild(text);

var delay = Math.floor(document.getElementById("delayText").value);
delay = Math.min(Math.max(delay, 1), 100);
delay = Math.min(Math.max(delay, 0), 100);
setTimeout(callLoad, delay * 1000);
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
Expand All @@ -64,7 +64,7 @@
cell.appendChild(text);

var delay = Math.floor(document.getElementById("delayText").value);
delay = Math.min(Math.max(delay, 1), 100);
delay = Math.min(Math.max(delay, 0), 100);
setTimeout(callLoad, delay * 1000);
}
});
Expand All @@ -90,7 +90,7 @@
Test count per burst:
<input type="number" id="countText" value="100"></input>
Delay between bursts (s):
<input type="number" id="delayText" value="2"></input>
<input type="number" id="delayText" value="0"></input>
<button type="button" id="startButton" style="position:static;" onclick="start()">Start</button>
<button type="button" id="stopButton" style="position:static;" disabled="true" onclick="stop()">Stop</button>
<span id="status"></span>
Expand Down

0 comments on commit 5157e51

Please sign in to comment.