Skip to content

Commit 0d3d895

Browse files
committed
Fix Cannot use local variable 'possiblyAbortedThreshold' before it is declared error
1 parent e10f4df commit 0d3d895

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Hangfire.Core/Dashboard/Pages/ServersPage.cshtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
var servers = monitor.Servers();
1414
var now = StorageUtcNow ?? ApplicationUtcNow;
1515
var inconclusiveThreshold = DashboardOptions.ServerPossiblyAbortedThreshold;
16-
var possiblyAbortedThreshold = TimeSpan.FromSeconds(possiblyAbortedThreshold.TotalSeconds * 2);
16+
var possiblyAbortedThreshold = TimeSpan.FromSeconds(inconclusiveThreshold.TotalSeconds * 2);
1717
}
1818

1919
<div class="row">

src/Hangfire.Core/Dashboard/Pages/ServersPage.cshtml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public override void Execute()
7878
var servers = monitor.Servers();
7979
var now = StorageUtcNow ?? ApplicationUtcNow;
8080
var inconclusiveThreshold = DashboardOptions.ServerPossiblyAbortedThreshold;
81-
var possiblyAbortedThreshold = TimeSpan.FromSeconds(possiblyAbortedThreshold.TotalSeconds * 2);
81+
var possiblyAbortedThreshold = TimeSpan.FromSeconds(inconclusiveThreshold.TotalSeconds * 2);
8282

8383

8484

0 commit comments

Comments
 (0)