示例#1
0
    def _get_warning(self):
        """Get the warning message for the hub."""
        warning = super()._get_warning()
        callback = None

        if not warning and is_smt_enabled():
            warning = _(
                "Warning: Processor has Simultaneous Multithreading (SMT) enabled.  "
                "<a href=\"\">Click for details.</a>")

            callback = self._show_detailed_smt_warning

        self._show_details_callback = callback
        return warning
示例#2
0
 def completed(self):
     """Show this spoke if SMT is enabled."""
     return not is_smt_enabled()