diff --git a/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt b/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt index 0611d73145..9fa98cea54 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt @@ -17,8 +17,13 @@ public class CacheExporter @Inject constructor( private val database: Database, private val alloc: ByteBufAllocator ) { - public data class ArchiveStats(val indexes: Long, val validIndexes: Long) - public data class GroupStats(val groups: Long, val validGroups: Long, val keys: Long, val validKeys: Long) + public data class ArchiveStats(val indexes: Long, val validIndexes: Long) { + public val allIndexesValid: Boolean = indexes == validIndexes + } + public data class GroupStats(val groups: Long, val validGroups: Long, val keys: Long, val validKeys: Long) { + public val allGroupsValid: Boolean = groups == validGroups + public val allKeysValid: Boolean = keys == validKeys + } public data class Cache( val id: Int, diff --git a/archive/src/main/resources/org/openrs2/archive/templates/caches/index.html b/archive/src/main/resources/org/openrs2/archive/templates/caches/index.html index bff07a4151..7f5ea87d81 100644 --- a/archive/src/main/resources/org/openrs2/archive/templates/caches/index.html +++ b/archive/src/main/resources/org/openrs2/archive/templates/caches/index.html @@ -26,9 +26,21 @@