Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 543

PowerShell • Re: Limitation in Trial Version for Service

$
0
0
So I changed the sleep seconds here and I could notice it is actually checking before IF condition as log file resets exactly after below seconds.
I modified to 120 and could see log resetting after 120 seconds.
What's wrong??
if ($global:bServicePaused -eq $true)
{
Start-Sleep -Seconds 20 # if the service is paused we sleep longer between checks
}
else
{
Start-Sleep –Seconds 10 # a lower number will make your service active more often and use more CPU cycles
}

Statistics: Posted by nirmalks — Tue May 07, 2024 9:25 pm



Viewing all articles
Browse latest Browse all 543

Trending Articles