projects
/
osm
/
vim-emu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bea3a10
)
removed an instance of busy waiting in the profiling topology
author
edmaas
<eduard.maas@uni-paderborn.de>
Sat, 4 Mar 2017 16:16:33 +0000
(17:16 +0100)
committer
edmaas
<eduard.maas@uni-paderborn.de>
Sat, 4 Mar 2017 16:16:33 +0000
(17:16 +0100)
src/emuvim/examples/profiling.py
patch
|
blob
|
history
diff --git
a/src/emuvim/examples/profiling.py
b/src/emuvim/examples/profiling.py
index
ec743e1
..
d7f96a4
100644
(file)
--- 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")