Skip to content

Commit

Permalink
fixed file sorting in cm read_folder, updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
QpxDesign committed Mar 8, 2024
1 parent bae1436 commit f16b135
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
workspace = { members = [ "tests","tests/obfuscate_access_log_ips"] }
[package]
name = "ngxav"
version = "0.5.1"
version = "0.5.2"
edition = "2021"
license = "MIT"
description = "Search through NGINX logs with advanced filters and support for displaying analytics about your selected log entries"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To run this, use `ngxav`.
If you're using the default NGINX Log Format, this should be working right out of the box.
You can use the following flags to search using different parameters:

- `-f/--file` - REQUIRED, specifcy the path to the file/folder you wish to search through
- `-f/--file` - REQUIRED, specifcy the path to the file/folder (like "access.log" or "/var/log/nginx/") you wish to search through
- `-s/--search`- OPTIONAL, either REGEX or text to match lines
- `-b/--start_date`- OPTIONAL, find all logs within certain timespan (use time format 08/Nov/2023:08:04:05)
- `-e/--end_date`- OPTIONAL, find all logs within certain timespan (use time format 08/Nov/2023:08:04:05)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/read_folder_conserve_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub fn read_folder_conserve_memory(file_path: String, isUnique: Option<bool>) {
paths.sort_by_key(|x| {
metadata(x.as_ref().unwrap().path().to_str().unwrap())
.unwrap()
.modified()
.created()
.unwrap()
});
let mut occurrences: HashMap<String, bool> = HashMap::new();
Expand Down

0 comments on commit f16b135

Please sign in to comment.