Skip to content

Commit

Permalink
fix: multi platform error
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Oct 2, 2023
1 parent 93362d2 commit 5d9a59d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/DotFastLZ.Packaging/SixPack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -677,11 +677,12 @@ public static int BenchmarkSpeed(int compress_level, string input_file)
/* shamelessly copied from QuickLZ 1.20 test program */
{

Console.WriteLine("Setting HIGH_PRIORITY_CLASS...");
{
Process currentProcess = Process.GetCurrentProcess();
currentProcess.PriorityClass = ProcessPriorityClass.High;
}
// multi platform error
// Console.WriteLine("Setting HIGH_PRIORITY_CLASS...");
// {
// Process currentProcess = Process.GetCurrentProcess();
// currentProcess.PriorityClass = ProcessPriorityClass.High;
// }

Console.WriteLine($"Benchmarking FastLZ Level {compress_level}, please wait...");

Expand Down

0 comments on commit 5d9a59d

Please sign in to comment.