No its during normal use. I have had my computer on for around 10 hours today studying and it hast turned off twice. But I am not sure if it is tied to sleep, it could be.
I have been having troubles with Alfred not finding apps and I traced it back to spotlight service. For some reason it keeps disabling itself for no reason. I turned it back on this afternoon via terminal and now once again it is disabled and I do not know why. How do I fix this?