U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Division by 0 in Thread::Priority
Re: Division by 0 in Thread::Priority [message #45019 is a reply to message #45011] Wed, 19 August 2015 09:33 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
For now, quick fix:

		param.sched_priority = (sched_get_priority_max(policy) - sched_get_priority_min(policy))
		                       * (minmax(percent, percent_min, percent_max) - percent_min)
		                       / max(percent_max - percent_min, 1);
 
Read Message
Read Message
Previous Topic: [solved] Bug in SSL or it's me ?
Next Topic: [GCC][C++11] error: call of overloaded 'pick(Upp::Any&)' is ambiguous
Goto Forum:
  


Current Time: Thu Jun 18 15:34:05 GMT+2 2026

Total time taken to generate the page: 0.00817 seconds