From: edmaas Date: Sat, 4 Mar 2017 16:16:33 +0000 (+0100) Subject: removed an instance of busy waiting in the profiling topology X-Git-Tag: v3.1~42^2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=0500890c29c015a026e1bfd707633699a8344da1;p=osm%2Fvim-emu.git removed an instance of busy waiting in the profiling topology --- 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")