From 9bcf07279513294d58c3076e7d8a6eb5ee64c759 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Mon, 5 Aug 2013 23:44:48 +0100
Subject: Make it possible to switch whether we serialize osd requests per
endpoint or not, either via config (SerializeOSDRequests in [Network]) or via
the "debug comms set" console command.
For debug purposes to assess what impact this has on network response in a heavy test environment.
---
OpenSim/Framework/Console/ConsoleUtil.cs | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Framework/Console')
diff --git a/OpenSim/Framework/Console/ConsoleUtil.cs b/OpenSim/Framework/Console/ConsoleUtil.cs
index 97a86a8..c0ff454 100644
--- a/OpenSim/Framework/Console/ConsoleUtil.cs
+++ b/OpenSim/Framework/Console/ConsoleUtil.cs
@@ -156,7 +156,27 @@ namespace OpenSim.Framework.Console
}
///
- /// Convert a minimum vector input from the console to an OpenMetaverse.Vector3
+ /// Convert a console integer to an int, automatically complaining if a console is given.
+ ///
+ /// Can be null if no console is available.
+ /// /param>
+ ///
+ ///
+ public static bool TryParseConsoleBool(ICommandConsole console, string rawConsoleString, out bool b)
+ {
+ if (!bool.TryParse(rawConsoleString, out b))
+ {
+ if (console != null)
+ console.OutputFormat("ERROR: {0} is not a true or false value", rawConsoleString);
+
+ return false;
+ }
+
+ return true;
+ }
+
+ ///
+ /// Convert a console integer to an int, automatically complaining if a console is given.
///
/// Can be null if no console is available.
/// /param>
--
cgit v1.1