diff --git a/glances/plugins/quicklook/__init__.py b/glances/plugins/quicklook/__init__.py index b22c78f5..ba72fac1 100644 --- a/glances/plugins/quicklook/__init__.py +++ b/glances/plugins/quicklook/__init__.py @@ -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 = ''