mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-27 23:30:51 -04:00
Export CacheMetric as hits+total, rather than hits+misses, as it's easier to derive hit ratio from that
This commit is contained in:
parent
1748605c5d
commit
cbc0406be8
2 changed files with 9 additions and 8 deletions
|
@ -140,7 +140,7 @@ class CacheMetricTestCase(unittest.TestCase):
|
|||
|
||||
self.assertEquals(metric.render(), [
|
||||
'cache:hits 0',
|
||||
'cache:misses 0',
|
||||
'cache:total 0',
|
||||
'cache:size 0',
|
||||
])
|
||||
|
||||
|
@ -149,7 +149,7 @@ class CacheMetricTestCase(unittest.TestCase):
|
|||
|
||||
self.assertEquals(metric.render(), [
|
||||
'cache:hits 0',
|
||||
'cache:misses 1',
|
||||
'cache:total 1',
|
||||
'cache:size 1',
|
||||
])
|
||||
|
||||
|
@ -157,6 +157,6 @@ class CacheMetricTestCase(unittest.TestCase):
|
|||
|
||||
self.assertEquals(metric.render(), [
|
||||
'cache:hits 1',
|
||||
'cache:misses 1',
|
||||
'cache:total 2',
|
||||
'cache:size 1',
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue