Browse Source

fix text formating

Stuart Johnson 1 year ago
parent
commit
0c004be265
2 changed files with 9 additions and 7 deletions
  1. 7 5
      .vs/TFA-Bot/xs/UserPrefs.xml
  2. 2 2
      TFA-Bot/DataClasses/clsNode.cs

+ 7 - 5
.vs/TFA-Bot/xs/UserPrefs.xml

@@ -1,26 +1,28 @@
 <Properties StartupConfiguration="{25609AB4-A77A-4B47-AAB8-B2DB39464A3F}|Default">
   <MonoDevelop.Ide.ItemProperties.TFA-Bot PreferredExecutionTarget="MonoDevelop.Default" />
-  <MonoDevelop.Ide.Workbench ActiveDocument="TFA-Bot Status">
+  <MonoDevelop.Ide.Workbench ActiveDocument="TFA-Bot/DataClasses/clsNode.cs">
     <Files>
-      <File FileName="TFA-Bot/DataClasses/clsNode.cs" Line="97" Column="62" />
       <File FileName="TFA-Bot/Spreadsheet/clsSpreadsheetReader.cs" Line="125" Column="1" />
       <File FileName="TFA-Bot/DiscordBot/Commands/clsHelp.cs" Line="24" Column="54" />
       <File FileName="TFA-Bot/DiscordBot/Commands/clsNetworks.cs" Line="34" Column="34" />
-      <File FileName="TFA-Bot/DataClasses/clsNetwork.cs" Line="138" Column="60" />
+      <File FileName="TFA-Bot/DataClasses/clsNetwork.cs" Line="24" Column="21" />
       <File FileName="TFA-Bot/clsExtenstions.cs" Line="57" Column="30" />
       <File FileName="TFA-Bot/DiscordBot/Commands/clsListNodes.cs" Line="21" Column="65" />
       <File FileName="TFA-Bot/Program.cs" Line="179" Column="22" />
       <File FileName="TFA-Bot/DataClasses/clsNodeGroup.cs" Line="73" Column="30" />
       <File FileName="TFA-Bot Status" />
+      <File FileName="TFA-Bot/DataClasses/clsNode.cs" Line="77" Column="21" />
     </Files>
     <Pads>
       <Pad Id="ProjectPad">
         <State name="__root__">
           <Node name="TFA-Bot" expanded="True">
             <Node name="Solution Items" expanded="True" />
-            <Node name="TFA-Bot" expanded="True" selected="True">
+            <Node name="TFA-Bot" expanded="True">
               <Node name="Packages" expanded="True" />
-              <Node name="DataClasses" expanded="True" />
+              <Node name="DataClasses" expanded="True">
+                <Node name="clsNode.cs" selected="True" />
+              </Node>
               <Node name="Dialler" expanded="True" />
               <Node name="DiscordBot" expanded="True">
                 <Node name="Commands" expanded="True" />

+ 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. Now {LastLeaderHeight.Value} {(DateTime.UtcNow-NodeGroup.Network.LastHeight.Value).ToMSDisplay()} late.");
+                    Program.AlarmManager.Clear(AlarmHeightLow,$"CLEARED: {Name} height low. Now {LeaderHeight} {(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 ({LastLeaderHeight.Value}). {(DateTime.UtcNow-NodeGroup.Network.LastHeight.Value).ToMSDisplay()} late and counting.",this);
+                    AlarmHeightLow = new clsAlarm(clsAlarm.enumAlarmType.Height,$"WARNING: {Name} height low ({LeaderHeight}). {(DateTime.UtcNow-NodeGroup.Network.LastHeight.Value).ToMSDisplay()} late and counting.",this);
                     Program.AlarmManager.New(AlarmHeightLow);
                  }
              }