Skip to content

Commit

Permalink
Fix: use SKIP for time.line start position
Browse files Browse the repository at this point in the history
  • Loading branch information
yne committed Nov 13, 2021
1 parent 586c154 commit 5fecd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void printYml(ParseCtx* p, PrintOpt* opt) {
printf(" scale: %.2f\n", p->scale);
printf(" unit: %s\n", p->unit ?: "?");
printf(" %-*s: %s", p->ch_lim, "line", opt->start);
for (double smpl = 0; smpl < p->total; smpl += ITV_TIME) {
for (double smpl = opt->skip; smpl < p->total; smpl += ITV_TIME) {
printf("%-*g ", ITV_TIME * zoom - 1, smpl * p->scale);
}
printf("%s\nchannels:\n", opt->end);
Expand Down

0 comments on commit 5fecd71

Please sign in to comment.