From 9a090d1b46714cba57e5047f146e99dde4d9d82d Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 10 Nov 2023 21:30:15 +0100 Subject: [PATCH] [`system`] Cache sizes can also be float, not necessarily int. --- platypush/schemas/system/_cpu/_model.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platypush/schemas/system/_cpu/_model.py b/platypush/schemas/system/_cpu/_model.py index 42e85e52d..639652829 100644 --- a/platypush/schemas/system/_cpu/_model.py +++ b/platypush/schemas/system/_cpu/_model.py @@ -59,7 +59,7 @@ class CpuInfo: } ) - frequency_advertised: Optional[int] = field( + frequency_advertised: Optional[float] = field( metadata={ 'metadata': { 'description': 'Advertised CPU frequency, in Hz', @@ -68,7 +68,7 @@ class CpuInfo: } ) - frequency_actual: Optional[int] = field( + frequency_actual: Optional[float] = field( metadata={ 'metadata': { 'description': 'Actual CPU frequency, in Hz', @@ -86,7 +86,7 @@ class CpuInfo: } ) - l1_instruction_cache_size: Optional[int] = field( + l1_instruction_cache_size: Optional[float] = field( metadata={ 'metadata': { 'description': 'Size of the L1 instruction cache, in bytes', @@ -95,7 +95,7 @@ class CpuInfo: } ) - l1_data_cache_size: Optional[int] = field( + l1_data_cache_size: Optional[float] = field( metadata={ 'metadata': { 'description': 'Size of the L1 data cache, in bytes', @@ -104,7 +104,7 @@ class CpuInfo: } ) - l2_cache_size: Optional[int] = field( + l2_cache_size: Optional[float] = field( metadata={ 'metadata': { 'description': 'Size of the L2 cache, in bytes', @@ -113,7 +113,7 @@ class CpuInfo: } ) - l3_cache_size: Optional[int] = field( + l3_cache_size: Optional[float] = field( metadata={ 'metadata': { 'description': 'Size of the L2 cache, in bytes',