Skip to content

Commit

Permalink
feat: 耗时格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoux committed Jun 21, 2024
1 parent 78fecfa commit c6c9c4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nga/nga.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ func (tiezi *Tiezi) fixFloorContent(startFloor_i int) {
}
wg.Wait()
elapsedTime := time.Since(startTime) / time.Millisecond
log.Printf("修正楼层总耗时: %dms\n", elapsedTime)
log.Println("修正楼层总耗时:", time.Second.Truncate(elapsedTime).String())
// 如果为了调试取消并行的话,上述代码均注释,换成下面的
// for i := startFloor_i; i < len(tiezi.Floors); i++ {
// log.Printf("开始修正第 %02d 楼层", i)
Expand Down Expand Up @@ -745,7 +745,7 @@ func (tiezi *Tiezi) Download() {
wg.Wait()

elapsedTime := time.Since(startTime) / time.Millisecond
log.Printf("下载所有页面总耗时: %dms\n", elapsedTime)
log.Println("下载所有页面总耗时:", time.Second.Truncate(elapsedTime).String())
if page_download_limit_triggered {
log.Println("单次下载 Page 数已达上限!本次导出完毕后需要多次重新运行才可全部导出此帖内容。")
}
Expand Down

0 comments on commit c6c9c4c

Please sign in to comment.