diff --git a/Statistics/LocalSettings.cs b/Statistics/LocalSettings.cs index ee29efb4b..b7c74b4be 100644 --- a/Statistics/LocalSettings.cs +++ b/Statistics/LocalSettings.cs @@ -232,21 +232,20 @@ namespace Statistics { #if GENESIS Language = "DE"; - BenchNames = new string[] { "Genesis" }; - + MidNames = new string[] { string.Empty, "I11", "I12", "I2", "I3", "I4", "I5" }; /// Index is MID-id ConnectionStrings = new string[] { "SERVER=localhost; DATABASE=genesis-r; UID=root; PASSWORD=; CHARSET=utf8;", }; - - MidNames = new string[] { string.Empty, "I11", "I12", "I2", "I3", "I4", "I5" }; /// Index is MID-id #else + BenchNames = new string[] { "WR10", "WR11", "WR13", "WR14", "WR15", "WR18", "WR19", "WR20", "WR21", "PT7" }; + MidNames = new string[] { string.Empty, "I1", "I2", "I3", "I4" }; /// Index is MID-id + #if true + /// Production Stara Tura Language = "SK"; - BenchNames = new string[] { "WR10", "WR11", "WR13", "WR14", "WR15", "WR18", "WR19", "WR20", "WR21", "PT7" }; - - ConnectionStrings = new string[] + ConnectionStrings = new string[] { "SERVER=10.42.130.69; DATABASE=st-wr10-r; UID=vysledky; PASSWORD=GAqx76QUB6NbnpZP; CHARSET=utf8;", "SERVER=10.42.129.27; DATABASE=st-wr11-r; UID=vysledky; PASSWORD=GAqx76QUB6NbnpZP; CHARSET=utf8;", @@ -259,9 +258,25 @@ namespace Statistics "SERVER=10.42.130.156; DATABASE=st-wr21-r; UID=vysledky; PASSWORD=GAqx76QUB6NbnpZP; CHARSET=utf8;", "SERVER=10.42.130.131; DATABASE=iperlspecial-r; UID=vysledky; PASSWORD=GAqx76QUB6NbnpZP; CHARSET=utf8;", }; + #else + /// Off-line demo + Language = "EN"; - MidNames = new string[] { string.Empty, "I1", "I2", "I3", "I4" }; /// Index is MID-id + ConnectionStrings = new string[] + { + "SERVER=localhost; DATABASE=st-wr10-r; UID=root; PASSWORD=kraken; CHARSET=utf8;", + "SERVER=localhost; DATABASE=st-wr11-r; UID=root; PASSWORD=kraken; CHARSET=utf8;", + "SERVER=localhost; DATABASE=st-wr13-r; UID=root; PASSWORD=kraken; CHARSET=utf8;", + "SERVER=localhost; DATABASE=st-wr14-r; UID=root; PASSWORD=kraken; CHARSET=utf8;", + "SERVER=localhost; DATABASE=st-wr15-r; UID=root; PASSWORD=kraken; CHARSET=utf8;", + "SERVER=localhost; DATABASE=st-wr18-r; UID=root; PASSWORD=kraken; CHARSET=utf8;", + "SERVER=localhost; DATABASE=st-wr19-r; UID=root; PASSWORD=kraken; CHARSET=utf8;", + "SERVER=localhost; DATABASE=st-wr20-r; UID=root; PASSWORD=kraken; CHARSET=utf8;", + "SERVER=localhost; DATABASE=st-wr21-r; UID=root; PASSWORD=kraken; CHARSET=utf8;", + }; + #endif #endif + FlowEnabledI1 = new bool[FlowsCount]; FlowEnabledI2 = new bool[FlowsCount]; FlowEnabledI3 = new bool[FlowsCount]; diff --git a/Statistics/Program.cs b/Statistics/Program.cs index 468e9d521..385bf60f8 100644 --- a/Statistics/Program.cs +++ b/Statistics/Program.cs @@ -35,7 +35,7 @@ namespace Statistics /// Local program configuration directory including the trailing backslash ExecutableDirectory = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); -#if false +#if true /// Config directory is a sibling directory of the executable directory ConfigDirectory = Path.Combine(ExecutableDirectory, "..", string.Format("Cfg{0}", (args.Length >= 1) ? args[0] : string.Empty)); #else