mirror of https://github.com/nicolargo/glances.git
Lint quicklook
This commit is contained in:
parent
928e577d8c
commit
68b5215e94
|
|
@ -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 = ''
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue