Skip to content

Commit

Permalink
Fixed Typo with Hour check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dateranoth committed Jun 18, 2018
1 parent 5c2e661 commit d7cfe96
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ConanServerUtility/ConanServerUtility.au3
@@ -1,12 +1,12 @@
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\..\resources\favicon.ico
#AutoIt3Wrapper_Outfile=..\..\build\ConanServerUtility_x86_v3.3.0-beta.1.exe
#AutoIt3Wrapper_Outfile_x64=..\..\build\ConanServerUtility_x64_v3.3.0-beta.1.exe
#AutoIt3Wrapper_Outfile=..\..\build\ConanServerUtility_x86_v3.3.0-beta.2.exe
#AutoIt3Wrapper_Outfile_x64=..\..\build\ConanServerUtility_x64_v3.3.0-beta.2.exe
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Res_Comment=By Dateranoth - June 18, 2018
#AutoIt3Wrapper_Res_Description=Utility for Running Conan Server
#AutoIt3Wrapper_Res_Fileversion=3.3.0-beta.1
#AutoIt3Wrapper_Res_Fileversion=3.3.0-beta.2
#AutoIt3Wrapper_Res_LegalCopyright=Dateranoth @ https://gamercide.com
#AutoIt3Wrapper_Res_Language=1033
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Expand Down Expand Up @@ -102,7 +102,7 @@ Func DailyRestartCheck($sWDays, $sHours, $sMin)
$iDay = Int(StringStripWS($aDays[$d], 8))
If $iDay = @WDAY Or $iDay = 0 Then
For $h = 1 To $aHours[0]
$iHour = Int(Stringsplit($aHours[$h], 8))
$iHour = Int(StringStripWS($aHours[$h], 8))
If $iHour = @HOUR And $sMin = @MIN Then
Return True
EndIf
Expand Down Expand Up @@ -696,7 +696,7 @@ EndFunc ;==>CloseEPointError

#Region ;**** Startup Checks. Initial Log, Read INI, Check for Correct Paths, Check Remote Restart is bound to port. ****
OnAutoItExitRegister("Gamercide")
FileWriteLine($g_c_sLogFile, _NowCalc() & " ConanServerUtility Script V3.3.0-beta.1 Started")
FileWriteLine($g_c_sLogFile, _NowCalc() & " ConanServerUtility Script V3.3.0-beta.2 Started")
ReadUini($g_c_sIniFile, $g_c_sLogFile)

If $UseSteamCMD = "yes" Then
Expand Down Expand Up @@ -795,8 +795,8 @@ While True ;**** Loop Until Closed ****
Case 0

If ProcessExists($g_sConanPID) And ($g_iBeginDelayedShutdown = 0) Then
FileWriteLine($g_c_sLogFile, _NowCalc() & " [" & $ServerName & " (PID: " & $g_sConanPID & ")] [Work Memory:" & $MEM[0] & " | Peak Memory:" & $MEM[1] & "] " & $sRestart)
Local $MEM = ProcessGetStats($g_sConanPID, 0)
FileWriteLine($g_c_sLogFile, _NowCalc() & " [" & $ServerName & " (PID: " & $g_sConanPID & ")] [Work Memory:" & $MEM[0] & " | Peak Memory:" & $MEM[1] & "] " & $sRestart)
If ($sUseDiscordBot = "yes") Or ($sUseTwitchBot = "yes") Or ($g_sUseMCRCON = "yes") Then
$g_iBeginDelayedShutdown = 1
$g_sTimeCheck0 = _NowCalc
Expand Down

0 comments on commit d7cfe96

Please sign in to comment.