[chronojump] On Ping, Mac and Unix are differentiated



commit f8c9718e6ad75380e973ca0635fa65363c9a19de
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Mar 23 21:36:41 2015 +0100

    On Ping, Mac and Unix are differentiated

 src/utilAll.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/utilAll.cs b/src/utilAll.cs
index cf8b3bc..7739181 100644
--- a/src/utilAll.cs
+++ b/src/utilAll.cs
@@ -49,6 +49,11 @@ public class UtilAll
        
        public static string GetOS() {
                OperatingSystem os = Environment.OSVersion;
+
+               //detect a Mac that seems an Unix
+               if(os.Platform == "Unix" && GetOSEnum == OperatingSystems.MACOSX)
+                       os.Platform = "Unix (MacOSX)";
+
                string osString =  string.Format("{0}, {1}", os.Platform, os.Version);
                LogB.Information("GetOS: " + osString);
                return osString;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]