Spyke

Replies

Comment on

Configd is crushing my MacBook Pro only when using battery as a power source.

Hi there,
I've used an older Mac for quite a long time and have a clue what this might be.
Your computer most likely thinks either it's overheating like crazy or thinks the battery can't handle the power draw from the battery and tries to do anything it can to prevent a crash.

It has two strategies to do so: 1) Hardware wise it clock the CPU and GPU down as far as it can, depending on CPU model it might disable all but one core.
2) Software wise it will spawn those processes, back in the day I think it was thermald?, might have changed since powerd and configd sounds about right to do "nothing" in a loop with the highest priority. Therefore cooling the cpu down because it doesn't have free time to do actual meaningful work.

You could verify this by running MacsFanControl or iStat Menus and check if a temp sensor or current sensor or voltage sensor goes crazy and reports weird values.

But as the computer actually crashes it's probably the knockoff battery cant keep up with your computer and needs replacement again. I'd recommend an iFixit battery, or try contacting rossmann repair and see if they can offer a more compelling option.

Good luck!

Comment on

[very noob question] how can i calculate the hours passed between 2 different times and between days in C

You save the unix timestamp at the beginning of the game and the end of the game (or use the current one). With this timestamps you can use functions to calculate length etc. For example https://cplusplus.com/reference/ctime/difftime/ You then can convert those into a better format. More info here https://cplusplus.com/reference/ctime/

Also chatgpt could help in those cases, if you don't want to wait for a answer on here :P