diff options
| author | gingerBill <bill@gingerbill.org> | 2019-05-25 20:24:19 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-05-25 20:24:19 +0100 |
| commit | 458ec5922e69f105ca92d348e475693dfa252ad0 (patch) | |
| tree | 0c7db7614a6a3f9d05816e54adc03d82118f06c3 /src/timings.cpp | |
| parent | f5fdd031f9b763a2b6a86f2fc536735fc8d7ed5d (diff) | |
odin query
Output .json file containing information about the program
Diffstat (limited to 'src/timings.cpp')
| -rw-r--r-- | src/timings.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/timings.cpp b/src/timings.cpp index 3aea7a0fa..31de1ce8c 100644 --- a/src/timings.cpp +++ b/src/timings.cpp @@ -165,8 +165,7 @@ void timings_print_all(Timings *t, TimingUnit unit = TimingUnit_Millisecond) { timings__stop_current_section(t); t->total.finish = time_stamp_time_now(); - max_len = t->total.label.len; - max_len = 36; + max_len = gb_min(36, t->total.label.len); for_array(i, t->sections) { TimeStamp ts = t->sections[i]; max_len = gb_max(max_len, ts.label.len); |