4 from monitor import database
8 actall = database.dbLoad("act_all_080825")
9 agg = database.dbLoad("aggregatehistory")
11 for node in actall.keys():
12 for record in actall[node]:
13 if 'date_created' in record:
14 t = record['date_created']
15 elif 'time' in record:
20 acttime = time.strftime("%Y-%m-%d", time.localtime(t))
22 if acttime > '2007-11-06':
23 if 'noop' in record['action']:
25 for ntime,state in agg[node]:
28 if type(record['action']) == type([]):
29 action = record['action'][0]
31 action = record['action']
32 print acttime, action, ntime, state, node
34 #print time.strftime("%Y-%m-%d", time.localtime(t)), record['action'], node
37 # for ntime,state in agg[node]:
39 # print ntime, state, node