Edit File: function_check_net_queue_count.cpython-36.pyc
3 �<�e� � @ s4 d dl ZddlmZ ejj� ZG dd� dej�ZdS )� N� )�basec s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )�check_net_queue_countz� Checks whether the user has specified a queue count for net devices. If not, return the number of housekeeping CPUs. c s t t| �jddd� d S )Nr r )�superr �__init__)�self)� __class__� �4/usr/lib/python3.6/function_check_net_queue_count.pyr s zcheck_net_queue_count.__init__c sL t t| �j|�sd S |d j� r(|d S | jjdg�\}}tjd| � |S )Nr ZnproczHnet-dev queue count is not correctly specified, setting it to HK CPUs %s)r r �execute�isdigitZ_cmd�log�warn)r �args�ret�out)r r r r s zcheck_net_queue_count.execute)�__name__� __module__�__qualname__�__doc__r r � __classcell__r r )r r r s r ) Z tuned.logsZtuned� r Zlogs�getr ZFunctionr r r r r �<module> s
Back to File Manager