mirror of
https://git.proxmox.com/git/pmg-log-tracker
synced 2025-05-29 10:11:10 +00:00
cargo fmt
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c8de75201b
commit
38ad688ccd
@ -2259,7 +2259,11 @@ fn parse_time(data: &'_ [u8], cur_year: i64, cur_month: i64) -> Option<(time_t,
|
|||||||
let data = &data[3..];
|
let data = &data[3..];
|
||||||
|
|
||||||
// assume smaller month now than in log line means yearwrap
|
// assume smaller month now than in log line means yearwrap
|
||||||
let mut year = if cur_month < mon { cur_year - 1 } else { cur_year };
|
let mut year = if cur_month < mon {
|
||||||
|
cur_year - 1
|
||||||
|
} else {
|
||||||
|
cur_year
|
||||||
|
};
|
||||||
|
|
||||||
let mut ltime: time_t = (year - 1970) * 365 + CAL_MTOD[mon as usize];
|
let mut ltime: time_t = (year - 1970) * 365 + CAL_MTOD[mon as usize];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user