mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
失败校验有具体时间
失败校验有具体时间
This commit is contained in:
parent
8b6e925b86
commit
273da61542
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user