Browse Source

fix text format issue.

Stuart Johnson 1 year ago
parent
commit
f6a4785c3d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      TFA-Bot/DataClasses/clsNode.cs

+ 2 - 2
TFA-Bot/DataClasses/clsNode.cs

@@ -88,12 +88,12 @@ namespace TFABot
              {
                  if (_heightLowCount==0 && AlarmHeightLow!=null)
                  {
-                    Program.AlarmManager.Clear(AlarmHeightLow,$"CLEARED: {Name} height low. ${(DateTime.UtcNow-NodeGroup.Network.LastHeight.Value).ToMSDisplay()} Late.");
+                    Program.AlarmManager.Clear(AlarmHeightLow,$"CLEARED: {Name} height low. Now {LastLeaderHeight.Value} {(DateTime.UtcNow-NodeGroup.Network.LastHeight.Value).ToMSDisplay()} late.");
                     AlarmHeightLow = null;
                  }
                  else if (_heightLowCount > 12 && _requestFailCount == 0 && AlarmHeightLow==null )
                  {
-                    AlarmHeightLow = new clsAlarm(clsAlarm.enumAlarmType.Height,$"WARNING: {Name} height low. ${(DateTime.UtcNow-NodeGroup.Network.LastHeight.Value).ToMSDisplay()} Late and counting.",this);
+                    AlarmHeightLow = new clsAlarm(clsAlarm.enumAlarmType.Height,$"WARNING: {Name} height low ({LastLeaderHeight.Value}). {(DateTime.UtcNow-NodeGroup.Network.LastHeight.Value).ToMSDisplay()} late and counting.",this);
                     Program.AlarmManager.New(AlarmHeightLow);
                  }
              }