# Path: amonagent/utils.py
# def split_and_slugify(string, separator=":"):
# 	_string = string.strip().split(separator)
# 	
# 	if len(_string) == 2: # Only key, value
# 		data = {}
# 		key = slugify(unicode(_string[0]))
# 		
# 		try:
# 			if len(_string[1]) > 0:
# 				data[key] = str(_string[1].strip())
# 		except:
# 			pass
# 
# 		return data
# 	
# 	else:
# 		return None
# 
# def to_float(value):
# 	result = value
# 	if not isinstance(value, int):
# 		result = float(value.replace(",", "."))
# 	
# 	return result


import subprocess
import re
import logging
from amonagent.utils import split_and_slugify, to_float

log = logging.getLogger(__name__)




def get_cpu_info():
	processor_dict = {}

	with open('/proc/cpuinfo', 'r') as l:
		lines = l.readlines()

		for line in lines:

# Path: amonagent/utils.py
# def split_and_slugify(string, separator=":"):
# 	_string = string.strip().split(separator)
# 	
# 	if len(_string) == 2: # Only key, value
# 		data = {}
# 		key = slugify(unicode(_string[0]))
# 		
# 		try:
# 			if len(_string[1]) > 0:
# 				data[key] = str(_string[1].strip())
# 		except:
# 			pass
# 
# 		return data
# 	
# 	else:
# 		return None
# 
# def to_float(value):
# 	result = value
# 	if not isinstance(value, int):
# 		result = float(value.replace(",", "."))
# 	
# 	return result


# Path: amonagent/modules/core.py
import subprocess
import re
import logging
from amonagent.utils import split_and_slugify, to_float


log = logging.getLogger(__name__)




def get_cpu_info():
	processor_dict = {}

	with open('/proc/cpuinfo', 'r') as l:
		lines = l.readlines()

		for line in lines:

			parsed_line = split_and_slugify(line)