[chronojump] Minor fix
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Minor fix
- Date: Mon, 23 Mar 2015 20:51:04 +0000 (UTC)
commit 61932c688ff95291ea1ad55de6eaa8f483488551
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Mar 23 21:50:47 2015 +0100
Minor fix
src/utilAll.cs | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/utilAll.cs b/src/utilAll.cs
index 7739181..39296fa 100644
--- a/src/utilAll.cs
+++ b/src/utilAll.cs
@@ -49,12 +49,13 @@ public class UtilAll
public static string GetOS() {
OperatingSystem os = Environment.OSVersion;
+ string platform = os.Platform.ToString();
//detect a Mac that seems an Unix
- if(os.Platform == "Unix" && GetOSEnum == OperatingSystems.MACOSX)
- os.Platform = "Unix (MacOSX)";
+ if(platform == "Unix" && GetOSEnum() == OperatingSystems.MACOSX)
+ platform = "Unix (MacOSX)";
- string osString = string.Format("{0}, {1}", os.Platform, os.Version);
+ string osString = string.Format("{0}, {1}", platform, os.Version);
LogB.Information("GetOS: " + osString);
return osString;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]