changes for 3.0
[monitor.git] / dumpact.py
index fd5be08..b710a54 100755 (executable)
@@ -5,12 +5,12 @@
 import sys
 import time
 import getopt
-import soltesz
+import database 
 
 def main():
 
-       act_all = soltesz.dbLoad(sys.argv[1])
-       plcdb_hn2lb = soltesz.dbLoad("plcdb_hn2lb")
+       act_all = database.dbLoad(sys.argv[1])
+       plcdb_hn2lb = database.dbLoad("plcdb_hn2lb")
        s_nodenames = ""
        sickdb = {}
 
@@ -43,8 +43,7 @@ def main():
                                        for k in keys:
                                                if "message" not in k and "msg" not in k:
                                                        if 'time' in k:
-                                                               s_time=time.strftime("%Y/%m/%d %H:%M:%S",
-                                                                                                               time.gmtime(diag_node[k]))
+                                                               s_time=time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(diag_node[k]))
                                                                print "\t'%s' : %s" % (k, s_time)
                                                        else:
                                                                print "\t'%s' : %s" % (k, diag_node[k])