Skip to content

fix(dumpkit): a nanosecond trace of a microsecond PCAP keeps the fraction unscaled #1500

Closed

Description

@JarryShaw

Describe the bug
Tracing a microsecond PCAP with trace_nanosecond=True writes a nanosecond-magic file but copies the microsecond fraction as is, so every timestamp shrinks by 1000.

Reproduction
A µs PCAP record (1500000000, 123456) traced with trace_nanosecond=True writes magic 4d3cb2a1 and record (1500000000, 123456), which re-reads as 1500000000.000123456.

Expected behavior
1500000000.123456: the fraction is scaled to the output resolution (×1000 for µs → ns, ÷1000 for ns → µs).

System information
Linux, CPython 3.14.7, main at 00aa1fc90.

Additional context
pcapkit/dumpkit/pcap.py:206-207 writes frame_info.ts_usec unconverted. For PCAP-NG input, foundation/engines/pcapng.py converts at the block's own resolution. many_interfaces.pcapng also hits this.

Found by the #1202 foundation round-trip slice; reproduced on main.

Activity

  1. added
    fixPull requests that fix a defect (fix: subject prefix)
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 9, 2026
  2. JarryShaw commented on Oct 9, 2026

    @JarryShaw
    OwnerAuthor

    Blocked until the #1202 foundation-slice test PR (branch test/1202-foundation-roundtrips) merges. That PR adds this defect's Gap row, and the fix must delete the row.

  3. added
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    and removed
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 9, 2026
  4. moved this from Pending to Blocked in PyPCAPKiton Oct 9, 2026
  5. JarryShaw commented on Oct 9, 2026

    @JarryShaw
    OwnerAuthor

    Unblocked: #1508 has merged, so this defect's known-failure row is on main. A worker is on the fix, and the fix PR deletes the row.

  6. added
    wipWork in flight - a covering PR is open or an agent is actively on it
    and removed
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    on Oct 9, 2026
  7. removed
    wipWork in flight - a covering PR is open or an agent is actively on it
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixPull requests that fix a defect (fix: subject prefix)

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions