Skip to content

Commit

Permalink
Fix Windows stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceneNerd committed Jul 2, 2024
1 parent cbab11a commit 39a251a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/logger.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::{
fmt::Write,
ops::Deref,
os::unix::fs::MetadataExt,
path::{Path, PathBuf},
sync::Arc,
};
Expand Down Expand Up @@ -58,7 +57,7 @@ impl Logger {
pub fn set_file(&self, mut file: PathBuf) {
if file
.metadata()
.map(|m| m.size() > 1_048_576)
.map(|m| m.len() > 1_048_576)
.unwrap_or_default()
{
let file_num = file
Expand Down

0 comments on commit 39a251a

Please sign in to comment.