From be8f17e04ba6a877b77d4f90f7b1cbd85e73b54d Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sun, 3 Mar 2024 08:05:42 +1100 Subject: [PATCH] Compile fix --- library/fsl/fsl_cpu.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/fsl/fsl_cpu.pas b/library/fsl/fsl_cpu.pas index db8ebcbaa..e995f42d7 100644 --- a/library/fsl/fsl_cpu.pas +++ b/library/fsl/fsl_cpu.pas @@ -74,7 +74,6 @@ implementation constructor TCPUUsageData.Create(PID : cardinal = 0); {$IFDEF WINDOWS} var - p : PCPUUsageData; mCreationTime, mExitTime, mKernelTime, mUserTime:_FILETIME; h : cardinal; {$ENDIF} @@ -129,7 +128,7 @@ function TCPUUsageData.cpuUsage : Single; begin result := 0; {$IFDEF WINDOWS} - if FHandle <> 0) then + if (FHandle <> 0) then begin result := FLastUsage; ThisTime := GetTickCount; //Get the time elapsed since last query