Skip to content

Commit 5e1c131

Browse files
authored
Merge pull request #2753 from martinhsv/v2/master
Fix: negative usec on log line when data type long is 32b
2 parents 03ec81d + b5b4e2f commit 5e1c131

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: CHANGES

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
DD mmm YYYY - 2.9.x (to be released)
22
-------------------
33

4+
* Fix: negative usec on log line when data type long is 32b
5+
[Issue #2753 - @ABrauer-CPT, @martinhsv]
46
* mlogc log-line parsing fails due to enhanced timestamp
57
[Issue #2682 - @bozhinov, @ABrauer-CPT, @martinhsv]
68
* Allow no-key, single-value JSON body

Diff for: apache2/msc_util.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ char *current_logtime(apr_pool_t *mp) {
11341134

11351135
apr_strftime(tstr, &len, 80, "%d/%b/%Y:%H:%M:%S.", &t);
11361136
apr_snprintf(tstr + strlen(tstr), 80 - strlen(tstr), "%06ld %c%.2d%.2d",
1137-
((long)now) % 1000000L,
1137+
(long)apr_time_usec(now),
11381138
t.tm_gmtoff < 0 ? '-' : '+',
11391139
t.tm_gmtoff / (60 * 60), (t.tm_gmtoff / 60) % 60);
11401140
return apr_pstrdup(mp, tstr);

0 commit comments

Comments
 (0)