Skip to content

Commit 653f6bd

Browse files
author
rhamlett_microsoft
committed
Fixed memory block setting issue.
Second attempt to fix active simulations not clearing.
1 parent 57b2344 commit 653f6bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/PerfProblemSimulator/wwwroot/js/dashboard.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,13 @@ async function initializeSignalR() {
6565
});
6666

6767
// Register message handlers
68+
// Note: SignalR uses camelCase for method names by default
6869
state.connection.on('ReceiveMetrics', handleMetricsUpdate);
70+
state.connection.on('receiveMetrics', handleMetricsUpdate);
6971
state.connection.on('SimulationStarted', handleSimulationStarted);
72+
state.connection.on('simulationStarted', handleSimulationStarted);
7073
state.connection.on('SimulationCompleted', handleSimulationCompleted);
74+
state.connection.on('simulationCompleted', handleSimulationCompleted);
7175

7276
// Start connection
7377
try {
@@ -355,7 +359,7 @@ async function allocateMemory() {
355359
const response = await fetch(`${CONFIG.apiBaseUrl}/memory/allocate-memory`, {
356360
method: 'POST',
357361
headers: { 'Content-Type': 'application/json' },
358-
body: JSON.stringify({ sizeInMegabytes: sizeMb })
362+
body: JSON.stringify({ sizeMegabytes: sizeMb })
359363
});
360364

361365
if (response.ok) {

0 commit comments

Comments
 (0)