|
|
|
@ -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" |
|
|
|
|
} |
|
|
|
|