generated from PlexSheep/rs-base
This commit is contained in:
parent
7bea6ede4c
commit
1cb492d90a
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
use std::io::{prelude::*, Read, SeekFrom};
|
use std::io::{prelude::*, Read, SeekFrom};
|
||||||
|
|
||||||
use anyhow::{bail, Result};
|
use anyhow::Result;
|
||||||
use libpt::bintols::display::humanbytes;
|
use libpt::bintols::display::humanbytes;
|
||||||
use libpt::log::{debug, error, trace, warn};
|
use libpt::log::{debug, error, trace, warn};
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ impl Hedu {
|
||||||
"******** {LINE_SEP_VERT} {:<49}",
|
"******** {LINE_SEP_VERT} {:<49}",
|
||||||
format!(
|
format!(
|
||||||
"(repeats {} lines)",
|
"(repeats {} lines)",
|
||||||
self.data_idx - start_line / (BYTES_PER_LINE) + 1
|
(self.data_idx - start_line / (BYTES_PER_LINE) + 1) / BYTES_PER_LINE
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if self.chars {
|
if self.chars {
|
||||||
|
@ -206,6 +206,8 @@ impl Hedu {
|
||||||
self.display();
|
self.display();
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// adjust the counters of the hedu struct, adding self.len
|
||||||
#[inline]
|
#[inline]
|
||||||
fn adjust_counters(&mut self) {
|
fn adjust_counters(&mut self) {
|
||||||
self.rd_counter += self.len;
|
self.rd_counter += self.len;
|
||||||
|
|
Reference in New Issue