mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 11:42:36 +01:00
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:
parent
23d2107b0e
commit
1dad8d48f5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user