Skip to content

Commit 258e1c0

Browse files
author
rhamlett_microsoft
committed
Fixed trigger crash button and removed delay option from UI and code.
1 parent b1a6f59 commit 258e1c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/PerfProblemSimulator/wwwroot/js/dashboard.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,14 +822,15 @@ async function triggerThreadBlock() {
822822
*/
823823
async function triggerCrash() {
824824
const crashType = document.getElementById('crashType').value;
825-
const delaySeconds = parseInt(document.getElementById('crashDelay').value) || 0;
825+
// Delay option removed from UI - default to 0 (immediate crash)
826+
const delayElement = document.getElementById('crashDelay');
827+
const delaySeconds = delayElement ? parseInt(delayElement.value) || 0 : 0;
826828

827829
// Confirmation dialog - always synchronous for Azure Crash Monitoring
828830
const confirmed = confirm(
829831
`⚠️ WARNING: This will CRASH the application!\n\n` +
830832
`Crash Type: ${crashType}\n` +
831-
`Delay: ${delaySeconds} seconds\n\n` +
832-
`The application will terminate and Azure will auto-restart it.\n` +
833+
`\nThe application will terminate and Azure will auto-restart it.\n` +
833834
`✓ Azure Crash Monitoring will capture this crash.\n` +
834835
`\nAre you sure you want to proceed?`
835836
);

0 commit comments

Comments
 (0)