Mercurial > hg > orthanc-tests
changeset 925:afc7edf1dff8
fix
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Thu, 11 Jun 2026 10:24:23 +0200 |
| parents | f7b5e2a63d01 |
| children | 43b07d7e6fd2 |
| files | NewTests/ExtraMainDicomTags/test_extra_main_dicom_tags.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/NewTests/ExtraMainDicomTags/test_extra_main_dicom_tags.py Tue Jun 09 14:46:16 2026 +0200 +++ b/NewTests/ExtraMainDicomTags/test_extra_main_dicom_tags.py Thu Jun 11 10:24:23 2026 +0200 @@ -103,10 +103,10 @@ def get_storage_access_count(self): m = self.o.get_metrics() - count = int(m.get('orthanc_storage_cache_hit_count')) + int(m.get('orthanc_storage_cache_miss_count')) + count = int(m.get('orthanc_storage_cache_hit_count') or '0') + int(m.get('orthanc_storage_cache_miss_count') or '0') if self.o.get_system()["ApiVersion"] >= 32: # 1.12.11+ and 32 = streaming branch - count += int(m.get('orthanc_dicom_cache_hit_count')) + count += int(m.get('orthanc_dicom_cache_hit_count') or '0') print(f"storage access count = {count}") return count
