resolved conflicts

This commit is contained in:
fawce
2012-08-01 11:03:23 -04:00
parent 211cd0271f
commit e4a21e7c61
2 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -298,7 +298,7 @@ class Controller(object):
# We break out of this loop if the time between
# sending and receiving the heartbeat is more
# than our poll period.
if tic - self.ctime > self.period:
log.info("heartbeat loop timedout: %s" % (tic - self.ctime))
log.info(repr(self.responses))
+26
View File
@@ -221,6 +221,32 @@ class DivByZeroAlgorithm():
def get_sid_filter(self):
return [self.sid]
class TimeoutAlgorithm():
def __init__(self, sid):
self.sid = sid
self.incr = 0
def initialize(self):
pass
def set_order(self, order_callable):
pass
def set_logger(self, logger):
pass
def set_portfolio(self, portfolio):
pass
def handle_data(self, data):
if self.incr > 4:
import time
time.sleep(100)
pass
def get_sid_filter(self):
return [self.sid]
class TestPrintAlgorithm():