From b5859d6541673eb1f683df941a7106f01d79c7a5 Mon Sep 17 00:00:00 2001 From: MikeMaximus Date: Sat, 15 Jul 2017 10:54:15 -0600 Subject: [PATCH] Cleaned up fix for issue #94 --- GBM/Managers/mgrCommon.vb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/GBM/Managers/mgrCommon.vb b/GBM/Managers/mgrCommon.vb index 5820c5c..e9c8bc9 100644 --- a/GBM/Managers/mgrCommon.vb +++ b/GBM/Managers/mgrCommon.vb @@ -323,7 +323,7 @@ Public Class mgrCommon End Function 'Get available disk space on a drive (Unix) - Private Shared Function GetAvailableDiskSpaceLinux(ByVal sPath As String) As Long + Private Shared Function GetAvailableDiskSpaceUnix(ByVal sPath As String) As Long Dim prsdf As Process Dim sOutput As String Dim sAvailableSpace As String @@ -343,7 +343,6 @@ Public Class mgrCommon Catch Return 0 End Try - Return 0 End Function 'Get available disk space on a drive (Windows) @@ -362,7 +361,7 @@ Public Class mgrCommon 'Get available disk space on a drive Public Shared Function GetAvailableDiskSpace(ByVal sPath As String) As Long If IsUnix() Then - Return GetAvailableDiskSpaceLinux(sPath) + Return GetAvailableDiskSpaceUnix(sPath) Else Return GetAvailableDiskSpaceWindows(sPath) End If