From 0500890c29c015a026e1bfd707633699a8344da1 Mon Sep 17 00:00:00 2001 From: edmaas Date: Sat, 4 Mar 2017 17:16:33 +0100 Subject: [PATCH] removed an instance of busy waiting in the profiling topology --- src/emuvim/examples/profiling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emuvim/examples/profiling.py b/src/emuvim/examples/profiling.py index ec743e1..d7f96a4 100644 --- a/src/emuvim/examples/profiling.py +++ b/src/emuvim/examples/profiling.py @@ -36,6 +36,7 @@ from emuvim.dcemulator.net import DCNetwork from emuvim.api.rest.rest_api_endpoint import RestApiEndpoint from emuvim.api.sonata import SonataDummyGatekeeperEndpoint from mininet.node import RemoteController +from time import sleep import argparse import sys import signal @@ -89,7 +90,7 @@ class Profiling: self.net.start() LOG.info("Started topology") while(not self.stop_now): - pass + sleep(1) self.net.stop() LOG.info("Stopped topology") -- 2.25.1