Lint quicklook

This commit is contained in:
nicolargo 2025-12-20 10:01:01 +01:00
parent 928e577d8c
commit 68b5215e94
1 changed files with 3 additions and 11 deletions

View File

@ -202,21 +202,13 @@ class QuicklookPlugin(GlancesPluginModel):
##########################
# System information
if (
'cpu_hz_current' in self.stats
and self.stats['cpu_hz_current'] is not None
):
if (
'cpu_hz' in self.stats
and self.stats['cpu_hz'] is not None
):
if 'cpu_hz_current' in self.stats and self.stats['cpu_hz_current'] is not None:
if 'cpu_hz' in self.stats and self.stats['cpu_hz'] is not None:
msg_freq = ' {:.2f}/{:.2f}GHz'.format(
self._hz_to_ghz(self.stats['cpu_hz_current']), self._hz_to_ghz(self.stats['cpu_hz'])
)
else:
msg_freq = ' {:.2f}GHz'.format(
self._hz_to_ghz(self.stats['cpu_hz_current'])
)
msg_freq = ' {:.2f}GHz'.format(self._hz_to_ghz(self.stats['cpu_hz_current']))
else:
msg_freq = ''