|
|
@ -94,7 +94,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 CheckSource.timeout |
|
|
|
debugTimeMap[sourceUrl] = if (state == "校验成功") spendingTime else CheckSource.timeout + spendingTime |
|
|
|
val printTime = debugTimeFormat.format(Date(spendingTime)) |
|
|
|
val printTime = debugTimeFormat.format(Date(spendingTime)) |
|
|
|
debugMessageMap[sourceUrl] = "$printTime $state" |
|
|
|
debugMessageMap[sourceUrl] = "$printTime $state" |
|
|
|
} |
|
|
|
} |
|
|
|