Skip to content

Commit

Permalink
Watney API: fixed issue #5 (limitThreads)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jusas committed Apr 14, 2023
1 parent d783510 commit 903c50f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/WatneyAstrometry.WebApi/ServiceRegistration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static void AddSolverApiServices(this IServiceCollection services, IConfi
config.StarDetectionBgOffset = watneyApiConfiguration.StarDetectionBgOffset > 0 ? watneyApiConfiguration.StarDetectionBgOffset : 3.0;
});

var solverGlobalConfiguration = new SolverGlobalConfiguration();
var solverGlobalConfiguration = SolverGlobalConfiguration.Default;
if((watneyApiConfiguration.LimitThreads ?? 0) > 0)
{
solverGlobalConfiguration.MaxThreads = watneyApiConfiguration.LimitThreads.Value;
Expand Down
2 changes: 1 addition & 1 deletion src/WatneyAstrometry.WebApi/WatneyAstrometry.WebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<DocumentationFile>apidoc.xml</DocumentationFile>
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
<VersionPrefix>1.2.0</VersionPrefix>
<VersionPrefix>1.2.1</VersionPrefix>
<AssemblyName>watney-api</AssemblyName>
</PropertyGroup>

Expand Down

0 comments on commit 903c50f

Please sign in to comment.