<table><tr><td style="">murveit added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28935">View Revision</a></tr></table><br /><div><div><p>Honestly, I don't know and can't test. However, it shouldn't fail. See line 161 in fitsview.cpp. <br />
If the system call on Windows doesn't support the _SC_PHYS_PAGES  request,<br />
it should return -1 according to <a href="http://man7.org/linux/man-pages/man3/sysconf.3.html" class="remarkup-link" target="_blank" rel="noreferrer">http://man7.org/linux/man-pages/man3/sysconf.3.html</a><br />
and then we should get the 300% default.</p>

<p>According to <a href="https://www.mkssoftware.com/docs/man3/sysconf.3.asp" class="remarkup-link" target="_blank" rel="noreferrer">https://www.mkssoftware.com/docs/man3/sysconf.3.asp</a> there is no _SC_PHYS_PAGES_<br />
and they say the -1 return value should be given, so my code should fail back to a 300% limit.</p>

<p>Apparently, there's a  MEMORYSTATUS.dwAvailPhys call on windows, <a href="https://github.com/eygilbert/egdb_intl/issues/1" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/eygilbert/egdb_intl/issues/1</a><br />
but I can't compile nor test windows code.</p>

<p>If you like, would it be possible for you to please test this on Windows?<br />
(e.g. add a printf to see what the variables are and if their product matches the amount of physical memory, or if one is -1)?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R321 KStars</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28935">https://phabricator.kde.org/D28935</a></div></div><br /><div><strong>To: </strong>murveit, mutlaqja<br /><strong>Cc: </strong>kde-edu, narvaez, apol<br /></div>