mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-25 17:24:17 -05:00
Get server general properties (#2117)
* add server handler * get server general properties
This commit is contained in:
@@ -345,15 +345,5 @@ namespace Microsoft.SqlTools.ServiceLayer.Utility
|
||||
return new string(nameChars);
|
||||
}
|
||||
private static readonly HashSet<char> illegalFilenameCharacters = new HashSet<char>(new char[] { '\\', '/', ':', '*', '?', '"', '<', '>', '|' });
|
||||
|
||||
/// <summary>
|
||||
/// Converts value in KBs to MBs
|
||||
/// </summary>
|
||||
/// <param name="valueInKb">value in kilo bytes</param>
|
||||
/// <returns>Returns as double type</returns>
|
||||
public static double ConvertKbtoMb(double valueInKb)
|
||||
{
|
||||
return (Math.Round(valueInKb / 1024, 2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user