You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-nan(ind) is not a way to display zero, it's a result of dividing by zero and this is a crash for int
check is only for virtual memory (its amount can be controlled by user)
physical memory can't be zero (then how you even run this)
not sure about system_cache
also optimized math for memory percentages
percent_f calculated first, then it converts to int percent
//memory are zeroed at start - no need to reassign zero
9218
+
if (out_buffer->page_file.total_bytes) out_buffer->page_file.percent_f=PR_CALC_PERCENTOF (out_buffer->page_file.used_bytes, out_buffer->page_file.total_bytes);
0 commit comments