Merge pull request #2035 from phil-davis/patch-3

This commit is contained in:
Renato Botelho 2015-11-06 13:39:12 -02:00
commit 4fa256df20

View File

@ -168,7 +168,9 @@ $section->addInput(new Form_StaticText(
if (is_writable("/")) {
$refcount = refcount_read(1000);
/* refcount_read returns -1 when shared memory section does not exist */
if ($refcount == 1 || $refcount == -1) {
/* refcount can be zero here when the user has set nanobsd_force_rw */
/* refcount 1 is normal, so only display the count for abnormal values */
if ($refcount == 1 || $refcount == 0 || $refcount == -1) {
$refdisplay = "";
} else {
$refdisplay = " (Reference count " . $refcount . ")";