Skip to content

Commit 1a9893f

Browse files
committed
use actual unit passed
1 parent e753beb commit 1a9893f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

service/src/main/kotlin/app/cash/backfila/ui/pages/BackfillShowAction.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ class BackfillShowAction @Inject constructor(
149149
}
150150
th(classes = "py-3 pl-8 pr-0 text-right font-semibold") {
151151
scope = ThScope.col
152-
+"""# of ${"units (records, segments, bytes)"} Precomputed"""
152+
+"""# Precomputed"""
153153
}
154154
th(classes = "py-3 pl-8 pr-0 text-right font-semibold") {
155155
scope = ThScope.col
156-
+"""# of ${"units (records, segments, bytes)"} Completed"""
156+
+"""# Completed"""
157157
}
158158
th(classes = "py-3 pl-8 pr-0 text-right font-semibold") {
159159
scope = ThScope.col
@@ -186,8 +186,8 @@ class BackfillShowAction @Inject constructor(
186186
+(partition.pkey_cursor ?: "")
187187
}
188188
td("hidden py-5 pl-8 pr-0 text-right align-top text-gray-700 sm:table-cell") { +"""${partition.pkey_start} to ${partition.pkey_end}""" }
189-
td("hidden py-5 pl-8 pr-0 text-right align-top text-gray-700 sm:table-cell") { +"""${partition.computed_matching_record_count}""" }
190-
td("hidden py-5 pl-8 pr-0 text-right align-top text-gray-700 sm:table-cell") { +"""${partition.backfilled_matching_record_count}""" }
189+
td("hidden py-5 pl-8 pr-0 text-right align-top text-gray-700 sm:table-cell") { +"""${partition.computed_matching_record_count} ${backfill.unit ?: "units (records, segments, bytes)"}""" }
190+
td("hidden py-5 pl-8 pr-0 text-right align-top text-gray-700 sm:table-cell") { +"""${partition.backfilled_matching_record_count} ${backfill.unit ?: "units (records, segments, bytes)"}""" }
191191
td("hidden py-5 pl-8 pr-0 text-right align-top tabular-nums text-gray-700 sm:table-cell") {
192192
ProgressBar(
193193
partition.backfilled_matching_record_count,

0 commit comments

Comments
 (0)