Support for Statistics off-line mode: change LocalSettings.cs line 244.
This commit is contained in:
parent
db9506290a
commit
9f19df7f3f
@ -232,19 +232,18 @@ namespace Statistics
|
|||||||
{
|
{
|
||||||
#if GENESIS
|
#if GENESIS
|
||||||
Language = "DE";
|
Language = "DE";
|
||||||
|
|
||||||
BenchNames = new string[] { "Genesis" };
|
BenchNames = new string[] { "Genesis" };
|
||||||
|
MidNames = new string[] { string.Empty, "I11", "I12", "I2", "I3", "I4", "I5" }; /// Index is MID-id
|
||||||
ConnectionStrings = new string[]
|
ConnectionStrings = new string[]
|
||||||
{
|
{
|
||||||
"SERVER=localhost; DATABASE=genesis-r; UID=root; PASSWORD=; CHARSET=utf8;",
|
"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
|
#else
|
||||||
Language = "SK";
|
|
||||||
|
|
||||||
BenchNames = new string[] { "WR10", "WR11", "WR13", "WR14", "WR15", "WR18", "WR19", "WR20", "WR21", "PT7" };
|
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";
|
||||||
|
|
||||||
ConnectionStrings = new string[]
|
ConnectionStrings = new string[]
|
||||||
{
|
{
|
||||||
@ -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.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;",
|
"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
|
#endif
|
||||||
|
|
||||||
FlowEnabledI1 = new bool[FlowsCount];
|
FlowEnabledI1 = new bool[FlowsCount];
|
||||||
FlowEnabledI2 = new bool[FlowsCount];
|
FlowEnabledI2 = new bool[FlowsCount];
|
||||||
FlowEnabledI3 = new bool[FlowsCount];
|
FlowEnabledI3 = new bool[FlowsCount];
|
||||||
|
|||||||
@ -35,7 +35,7 @@ namespace Statistics
|
|||||||
|
|
||||||
/// Local program configuration directory including the trailing backslash
|
/// Local program configuration directory including the trailing backslash
|
||||||
ExecutableDirectory = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
ExecutableDirectory = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||||
#if false
|
#if true
|
||||||
/// Config directory is a sibling directory of the executable directory
|
/// 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));
|
ConfigDirectory = Path.Combine(ExecutableDirectory, "..", string.Format("Cfg{0}", (args.Length >= 1) ? args[0] : string.Empty));
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user