7 return time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(t))
9 def get_filelist_from_dir(dirname):
10 filelist = glob("%s/*.out" % dirname)
17 def get_hostlist_from_dir(dirname):
18 filelist = glob("%s/*.out" % dirname)
22 ret_list.append([os.path.basename(file)[:-4], ''])
28 (k,v) = (line[0], line[1])
32 # multiple values for the same key
33 if isinstance(ret[k], list):
40 return csv_to_hash(csv.reader(open(file,'r')))