Skip to content

If a command takes longer than 35 minutes, it causes an integer overflow #9

@patrobinson

Description

@patrobinson

Sometimes we see issues where the histogram is showing negative values

Histogram      :
    msecs: count  normalized bar
    64470:     1  ########################################
    64600:     1  ########################################
    64900:     1  ########################################
    64960:     1  ########################################
    71250:     1  ########################################
    72920:     1  ########################################
    1379090:     1  ########################################
    1786410:     1  ########################################
    -1539767:     1  ########################################
    -105637:     1  ########################################

Reading through the code it uses microseconds (1/1,000,000th of a second) to measure ticks (but is outputting milliseconds). at that precision a 32bit integer will roll over after 35min and 47.46 seconds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions