Skip to content

Commit 33ec045

Browse files
author
Chris Maunder
committed
Wording / format
1 parent 537035e commit 33ec045

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/SDK/NET/Analysis/ModuleWorkerBase.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,19 +268,15 @@ private async Task ProcessQueue(CancellationToken token, int taskNumber)
268268

269269
// Special shutdown request
270270
string? requestModuleId = request.payload?.GetValue("moduleId");
271-
if (command =="quit" &&
272-
requestModuleId?.EqualsIgnoreCase(_moduleId) == true)
271+
if (command == "quit" && requestModuleId?.EqualsIgnoreCase(_moduleId) == true)
273272
{
274273
await ShutDown(0);
275274
return;
276275
}
277276

278-
ExpandoObject response;
279-
280277
Stopwatch stopWatch = Stopwatch.StartNew();
281278

282-
// the switch statement is easier to read than a series of if/else statements
283-
response = command switch
279+
ExpandoObject response = command switch
284280
{
285281
"get_module_status" => GetModuleStatus(request),
286282
"get_command_status" => await GetCommandStatus(request).ConfigureAwait(false),

src/server/Modules/ModuleCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public string? SettingsSummary
291291
summary.AppendLine($"LogVerbosity: {LaunchSettings?.LogVerbosity}");
292292
summary.AppendLine($"Platforms: {string.Join(',', InstallOptions?.Platforms?? Array.Empty<string>())}");
293293
summary.AppendLine($"GPU Libraries: {((GpuOptions?.InstallGPU == true)? "installed if available" : "not installed")}");
294-
summary.AppendLine($"GPU Enabled: {((GpuOptions?.EnableGPU == true)? "enabled" : "disabled")}");
294+
summary.AppendLine($"GPU: {((GpuOptions?.EnableGPU == true)? "use if supported" : "do not use")}");
295295
summary.AppendLine($"Accelerator: {GpuOptions?.AcceleratorDeviceName}");
296296
summary.AppendLine($"Half Precision: {GpuOptions?.HalfPrecision}");
297297
summary.AppendLine($"Environment Variables");

0 commit comments

Comments
 (0)