hedu data_idx offset fix
cargo devel CI / cargo CI (push) Successful in 2m13s Details

fixes #56
This commit is contained in:
Christoph J. Scherr 2024-01-17 18:08:56 +01:00
parent 714db3a9e6
commit 6d5171357b
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
2 changed files with 3 additions and 2 deletions

View File

@ -16,8 +16,8 @@ authors = ["Christoph J. Scherr <software@cscherr.de>"]
license = "MIT"
description = "Personal multitool"
readme = "README.md"
homepage = "https://git.cscherr.de/PlexSheep/libpt"
repository = "https://git.cscherr.de/PlexSheep/libpt"
homepage = "https://git.cscherr.de/PlexSheep/pt"
repository = "https://git.cscherr.de/PlexSheep/pt"
keywords = ["cli", "library"]
categories = [
"command-line-utilities",

View File

@ -69,6 +69,7 @@ pub fn dump(data: &mut dyn DataSource, mut config: HeduConfig) -> Result<()> {
if config.skip > 0 {
data.skip(config.skip)?;
config.data_idx += config.skip;
config.data_idx += BYTES_PER_LINE - config.data_idx % BYTES_PER_LINE;
debug!("Skipped {}", humanbytes(config.skip));
}