diff --git a/src/CacheSim/View.elm b/src/CacheSim/View.elm index fd958f5..2896640 100644 --- a/src/CacheSim/View.elm +++ b/src/CacheSim/View.elm @@ -137,7 +137,10 @@ viewCache level (cm, cs) = slotHtml s = case s of Empty -> td [] [ text "" ] - Used l a -> td [] [ text <| String.fromInt a ] + Used l a -> td [] [ text <| + (String.fromInt (a * cm.blockSize * 4)) ++ + "-" ++ + (String.fromInt ((a + 1) * cm.blockSize * 4 - 1)) ] in List.map slotHtml set cacheRow = List.concat <| List.map setRow cs