Skip to content

Commit 59ffa7a

Browse files
committed
0.11.4 - Fix Access Time
1 parent 1aaa076 commit 59ffa7a

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vrc-log"
3-
version = "0.11.3"
3+
version = "0.11.4"
44
authors = ["Shayne Hartford <shaybox@shaybox.com>"]
55
edition = "2021"
66
description = "VRChat Local Avatar ID Logger"

src/lib.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,20 @@ pub fn watch<P: AsRef<Path>>(tx: Sender<PathBuf>, path: P) -> notify::Result<Pol
6161
move |watch_event: notify::Result<Event>| {
6262
if let Ok(event) = watch_event {
6363
for path in event.paths {
64-
if path.ends_with("avatars.sqlite") {
65-
continue;
64+
if !path.ends_with(".log") {
65+
let _ = tx.send(path);
6666
}
67-
68-
let _ = tx.send(path);
6967
}
7068
}
7169
},
72-
Config::default().with_poll_interval(Duration::from_secs(1)),
70+
Config::default()
71+
.with_compare_contents(true)
72+
.with_poll_interval(Duration::from_secs(1)),
7373
move |scan_event: notify::Result<PathBuf>| {
7474
if let Ok(path) = scan_event {
75-
if path.ends_with("avatars.sqlite") {
76-
return;
75+
if !path.ends_with(".log") {
76+
let _ = tx_clone.send(path);
7777
}
78-
79-
let _ = tx_clone.send(path);
8078
}
8179
},
8280
)?;

0 commit comments

Comments
 (0)