Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 13976
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: Sat May 11 06:24:55 CEST 2024

Total time taken to generate the page: 0.01918 seconds