diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 106dedc..f88901c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,7 +2,7 @@ name: Build Test on: push: - branches: [ "main" ] + branches: [ "main", "develop" ] pull_request: branches: [ "main" ] diff --git a/README.md b/README.md index d98abfe..bd59e9f 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,9 @@ page count: 2 entry count: 1850 entry count: 880 % cat ./output.json | tail -n 3 -{"path":"private/var/log/DiagnosticMessages/StoreData\u0000","id":308039,"flags":"FSE_CONTENT_MODIFIED | FSE_IS_FILE","create_ts":1664093703,"modiy_ts":1664093703,"source":"000000000004c323"} -{"path":"private/var/log/system.log\u0000","id":308036,"flags":"FSE_CONTENT_MODIFIED | FSE_IS_FILE","create_ts":1664093703,"modiy_ts":1664093703,"source":"000000000004c323"} -{"path":"private/var/root/Library/Logs/Bluetooth/bluetoothd-hci-latest.pklg\u0000","id":309733,"flags":"FSE_CONTENT_MODIFIED | FSE_IS_FILE","create_ts":1664093703,"modiy_ts":1664093703,"source":"000000000004c323"} +{"path":"private/var/log/DiagnosticMessages/StoreData\u0000","id":308039,"flags":"FSE_CONTENT_MODIFIED | FSE_IS_FILE","create_ts":1664093703,"modify_ts":1664093703,"source":"000000000004c323"} +{"path":"private/var/log/system.log\u0000","id":308036,"flags":"FSE_CONTENT_MODIFIED | FSE_IS_FILE","create_ts":1664093703,"modify_ts":1664093703,"source":"000000000004c323"} +{"path":"private/var/root/Library/Logs/Bluetooth/bluetoothd-hci-latest.pklg\u0000","id":309733,"flags":"FSE_CONTENT_MODIFIED | FSE_IS_FILE","create_ts":1664093703,"modify_ts":1664093703,"source":"000000000004c323"} ``` Use Sqlite output format. diff --git a/src/registry.rs b/src/registry.rs index 3b3b92d..2601dd5 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -28,7 +28,7 @@ pub mod json { flags: String, // flag description create_ts: u64, - modiy_ts: u64, + modify_ts: u64, source: String, // source archive file name } @@ -55,7 +55,7 @@ pub mod json { .duration_since(UNIX_EPOCH) .unwrap_or_default() .as_secs(), - modiy_ts: archive + modify_ts: archive .mtime .duration_since(UNIX_EPOCH) .unwrap_or_default()