Skip to content

lib/osutil: Skip setLowPriority in Windows if already lower (fixes #6597) - #8993

Merged
calmh merged 1 commit into
syncthing:mainfrom
tomasz1986:tomasz86/lib/osutil/dont-increase-priority-when-lower
Jul 21, 2023
Merged

calmh merged 1 commit into
syncthing:mainfrom
tomasz1986:tomasz86/lib/osutil/dont-increase-priority-when-lower

Conversation

@tomasz1986

Copy link
Copy Markdown
Member

lib/osutil: Skip setLowPriority in Windows if already lower (fixes #6597)

Currently, setLowPriority always changes the process priority to "below
normal" even if the current priority is already equal or lower than
that. With this change, the process priority is changed only if the
current priority is higher than "below normal".

…ncthing#6597)

Currently, setLowPriority always changes the process priority to "below
normal" even if the current priority is already equal or lower than
that. With this change, the process priority is changed only if the
current priority is higher than "below normal".

Signed-off-by: Tomasz Wilczyński <[email protected]>
@calmh
calmh enabled auto-merge (squash) July 21, 2023 04:34
@calmh
calmh merged commit d70eb56 into syncthing:main Jul 21, 2023
@tomasz1986
tomasz1986 deleted the tomasz86/lib/osutil/dont-increase-priority-when-lower branch July 21, 2023 08:28
calmh added a commit to calmh/syncthing that referenced this pull request Jul 25, 2023
* main:
  gui: Remove Twitter link from footer (syncthing#9000)
  gui, man, authors: Update docs, translations, and contributors
  lib/ur: Don't report uptime if start time is in the past (fixes syncthing#7698) (syncthing#8996)
  lib/model: use WARN for "Unexpected folder" messages (syncthing#8998)
  lib/osutil: Skip setLowPriority in Windows if already lower (fixes syncthing#6597) (syncthing#8993)
  all: replace empty slice literal with `var` (syncthing#8990)
  all: fix unused method receiver (syncthing#8988)
  all: unused parameter should be replaced by underscore (syncthing#8989)
  gui, man, authors: Update docs, translations, and contributors
  cmd/syncthing: Mention STVERSIONEXTRA in --help output (ref syncthing#8980)
  gui, lib/api: Add possibility to feed through extra version information (syncthing#8980)
  cmd/ursrv: Update map tile URL
  cmd/strelaypoolsrv: Update map tile URL (syncthing#8985)
  cmd/stcrashreceiver: Correct parsing of current version string
calmh added a commit to calmh/syncthing that referenced this pull request Jul 25, 2023
* main:
  gui: Remove Twitter link from footer (syncthing#9000)
  gui, man, authors: Update docs, translations, and contributors
  lib/ur: Don't report uptime if start time is in the past (fixes syncthing#7698) (syncthing#8996)
  lib/model: use WARN for "Unexpected folder" messages (syncthing#8998)
  lib/osutil: Skip setLowPriority in Windows if already lower (fixes syncthing#6597) (syncthing#8993)
  all: replace empty slice literal with `var` (syncthing#8990)
  all: fix unused method receiver (syncthing#8988)
  all: unused parameter should be replaced by underscore (syncthing#8989)
@calmh calmh added this to the v1.23.7 milestone Jul 31, 2023
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Jul 20, 2024
@syncthing syncthing locked and limited conversation to collaborators Jul 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setLowPriority should not increase process priority when already lower (in Windows)

3 participants