[chronojump] On Ping, Mac and Unix are differentiated
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] On Ping, Mac and Unix are differentiated
- Date: Mon, 23 Mar 2015 20:37:28 +0000 (UTC)
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]