失败校验有具体时间

失败校验有具体时间
pull/1596/head
Jason Yao 3 years ago
parent 8b6e925b86
commit 273da61542
  1. 2
      app/src/main/java/io/legado/app/model/Debug.kt

@ -94,7 +94,7 @@ object Debug {
fun updateFinalMessage(sourceUrl: String, state: String) {
if (debugTimeMap[sourceUrl] != null && debugMessageMap[sourceUrl] != null) {
val spendingTime = System.currentTimeMillis() - debugTimeMap[sourceUrl]!!
debugTimeMap[sourceUrl] = if (state == "校验成功") spendingTime else CheckSource.timeout
debugTimeMap[sourceUrl] = if (state == "校验成功") spendingTime else CheckSource.timeout + spendingTime
val printTime = debugTimeFormat.format(Date(spendingTime))
debugMessageMap[sourceUrl] = "$printTime $state"
}

Loading…
Cancel
Save