[Bro-Dev] [JIRA] (BIT-1558) Bro's ascii formatter writing out scientific notation

Matthias Vallentin (JIRA) jira at bro-tracker.atlassian.net
Tue Mar 22 13:51:01 PDT 2016


    [ https://bro-tracker.atlassian.net/browse/BIT-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=25102#comment-25102 ] 

Matthias Vallentin commented on BIT-1558:
-----------------------------------------

Looks like a missing `std::fixed` in an I/O stream, or missing conversion from double to (un)signed integer.

> Bro's ascii formatter writing out scientific notation
> -----------------------------------------------------
>
>                 Key: BIT-1558
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1558
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>    Affects Versions: git/master
>            Reporter: Seth Hall
>
> From the mailing list:
> ```
> Hello,
> in the x509.log normally the values regarding certificate.not_valid_before & certificate.not_valid_after look like:
> 1444082400.000000       1475791199.000000
> I found some value like this:
> -3600.000000    2.153226e+09
> Is it possible to modify something in order to have 2153226000 instead 2.153226e+09 ?
> ```
> Bro's formatter's shouldn't use scientific notation because it complicates parsing of the data.



--
This message was sent by Atlassian JIRA
(v7.2.0-OD-04-029#72002)


More information about the bro-dev mailing list