Skip to content

Commit 0b5ec9c

Browse files
Luke Karryswraithgar
Luke Karrys
andauthored
fixup!
Co-authored-by: Gar <[email protected]>
1 parent a701d19 commit 0b5ec9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lib/utils/log-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const makeOldLogs = (count, oldStyle) => {
1616
const d = new Date()
1717
d.setHours(-1)
1818
d.setSeconds(0)
19-
return range(count / (oldStyle ? 1 : 2)).reduce((acc, i) => {
19+
return range(oldStyle ? count : (count / 2)).reduce((acc, i) => {
2020
const cloneDate = new Date(d.getTime())
2121
cloneDate.setSeconds(i)
2222
const dateId = LogFile.logId(cloneDate)

0 commit comments

Comments
 (0)