Skip to content

Commit c57635e

Browse files
committed
fix(monitor): update process refresh kind to set exe and cmd update policies
Change from Always to OnlyIfNotSet for both exe and cmd updates to prevent unnecessary refreshes while still ensuring initial values are set.
1 parent c765f0b commit c57635e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,5 @@ pub(crate) fn extract_hot_reload_project_path(process: &sysinfo::Process) -> Opt
271271
/// create process refresh kind
272272
fn process_refresh_kind() -> ProcessRefreshKind {
273273
// we need nothing, no cpu, no memory, just basics
274-
ProcessRefreshKind::nothing().with_cmd(UpdateKind::Always)
274+
ProcessRefreshKind::nothing().with_exe(UpdateKind::OnlyIfNotSet).with_cmd(UpdateKind::OnlyIfNotSet)
275275
}

0 commit comments

Comments
 (0)