File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/PerfProblemSimulator/wwwroot/js Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -822,14 +822,15 @@ async function triggerThreadBlock() {
822822 */
823823async 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 ) ;
You can’t perform that action at this time.
0 commit comments