Refactor comment for clarity

Clarified comment in the video generation process to correctly convey the frequency of standby prevention, ensuring it happens every 30 seconds rather than after 30 seconds. This improves code readability and helps future maintenance.

Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
This commit is contained in:
Ivandro Jao 2024-10-19 00:17:07 +01:00
parent 23d2107b0e
commit 1dad8d48f5

View File

@ -618,7 +618,7 @@ namespace Nikse.SubtitleEdit.Forms
var timeSpent = 1; // process.ExitTime - DateTime.Now;
while (!process.HasExited && !process.WaitForExit(1000))
{
// ensure standby prevention after every 30 seconds
// ensure standby prevention every 30 seconds
if (timeSpent++ % 30 == 0)
{
WindowsHelper.PreventStandBy();