Revision a60088f6 lib/peerstreamer_logs.py

View differences:

lib/peerstreamer_logs.py
2 2
from pandas import * 
3 3

  
4 4
def hostname_from_filename(filename):
5
	return filename[:17]
5
	return filename.split('_')[0]
6
#	return filename[:17]  
6 7

  
7 8
def time_from_filename(filename):
8 9
	return filename.split('.')[0][-10:]
......
39 40
# 00000000008e_0034
40 41
	if name:
41 42
		if name not in nicks.keys():
42
			return ("s"+name[-2:]+name[10:12]).lower()
43
			return 's'+name.split('_')[0] 
44
#			return ("s"+name[-2:]+name[10:12]).lower()
43 45
		else:
44 46
			return nicks[name]
45 47
	else:

Also available in: Unified diff