[system] Cache sizes can also be float, not necessarily int.

This commit is contained in:
Fabio Manganiello 2023-11-10 21:30:15 +01:00
parent 3d62069775
commit 9a090d1b46
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -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',