Skip to content
Snippets Groups Projects
Commit 852caaf3 authored by Erik Reid's avatar Erik Reid
Browse files

use GB = 1<<30 instead of 10^9

parent 96ca8834
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,8 @@ from inventory_provider.routes import common ...@@ -9,6 +9,8 @@ from inventory_provider.routes import common
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
routes = Blueprint('poller-support-routes', __name__) routes = Blueprint('poller-support-routes', __name__)
GB = 1 << 30
INTERFACE_LIST_SCHEMA = { INTERFACE_LIST_SCHEMA = {
'$schema': 'http://json-schema.org/draft-07/schema#', '$schema': 'http://json-schema.org/draft-07/schema#',
...@@ -303,8 +305,6 @@ def interface_speed(ifc): ...@@ -303,8 +305,6 @@ def interface_speed(ifc):
:param ifc: :param ifc:
:return: an integer bits per second :return: an integer bits per second
""" """
GB = 1000000000
# GB = 1 << 30
def _name_to_speed(ifc_name): def _name_to_speed(ifc_name):
if ifc_name.startswith('ge'): if ifc_name.startswith('ge'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment