From 93361bcd87706a8b3d4405fcab9375770872437d Mon Sep 17 00:00:00 2001 From: MikeMaximus Date: Mon, 1 Jan 2018 10:57:23 -0600 Subject: [PATCH] Fixed ignoring sessions --- GBM/Forms/frmMain.vb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GBM/Forms/frmMain.vb b/GBM/Forms/frmMain.vb index 0be064a..ee04b3a 100644 --- a/GBM/Forms/frmMain.vb +++ b/GBM/Forms/frmMain.vb @@ -294,7 +294,7 @@ Public Class frmMain OperationStarted(False) If oProcess.GameInfo.MonitorOnly = False Then - If SupressBackup() Then + If SupressSession() Then bDoBackup = False UpdateLog(mgrCommon.FormatString(frmMain_ErrorBackupSessionLength, oProcess.GameInfo.Name), False) SetLastAction(mgrCommon.FormatString(frmMain_ErrorBackupSessionLength, oProcess.GameInfo.CroppedName)) @@ -716,9 +716,8 @@ Public Class frmMain Private Sub HandleSession() Dim oSession As clsSession - Dim iSession As Integer = Math.Ceiling(oProcess.TimeSpent.TotalMinutes) - If iSession > oSettings.SupressBackupThreshold Then + If Not SupressSession() Then 'Record Session oSession = New clsSession oSession.MonitorID = oProcess.GameInfo.ID @@ -729,7 +728,7 @@ Public Class frmMain End If End Sub - Private Function SupressBackup() As Boolean + Private Function SupressSession() As Boolean Dim iSession As Integer If oSettings.SupressBackup Then iSession = Math.Ceiling(oProcess.TimeSpent.TotalMinutes)