更新updateFinalMessage

pull/1591/head
Xwite 3 years ago
parent 774cedb796
commit ad380e814a
  1. 2
      app/src/main/java/io/legado/app/model/Debug.kt

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

Loading…
Cancel
Save