This commit is contained in:
iyear 2020-04-07 10:57:03 +08:00
parent 1c1bc08b03
commit 234cfdcf86

View File

@ -103,7 +103,7 @@ func GetRecentLogs(path string, n int) []string {
//fmt.Println(nt)
for i := 1; i <= nt; {
if PathExists(path + data.Format("2006-01-02") + ".log") {
paths = append(paths, path+data.Format("2006-01-02")+".log")
paths = append(paths, data.Format("2006-01-02")+".log")
i++
}
data = data.Add(d)