commit | a68380524b5b47cd77f5f4a47c1441b3c5b2cf93 | [log] [tgz] |
---|---|---|
author | Thayne McCombs <thayne@lucidchart.com> | Fri Apr 02 14:12:43 2021 -0600 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Tue Apr 06 07:31:51 2021 +0200 |
tree | 5dad1b90b1de5a9e2413d016ec59433456cc869d | |
parent | eccb31c939cea18ca844b831602f0008c318d98e [diff] |
BUG/MINOR: tools: fix parsing "us" unit for timers Commit c20ad0d8dbd1bb5707bbfe23632415c3062e046c (BUG/MINOR: tools: make parse_time_err() more strict on the timer validity) broke parsing the "us" unit in timers. It caused `parse_time_err()` to return the string "s", which indicates an error. Now if the "u" is followed by an "s" we properly continue processing the time instead of immediately failing. This fixes #1209. It must be backported to all stable versions.