Fix to explicitly call for manual refresh

Presumably some args are passed to the sub when called using cli causing unintentional outcome

https://forum.virtualmin.com/t/collectinfo-pl-high-cpu-usage/108841/4

https://www.virtualmin.com/node/54532#comment-832029
This commit is contained in:
Ilia Rostovtsev
2021-01-08 14:36:59 +03:00
parent a76125769f
commit 43d0eb5a34
2 changed files with 2 additions and 2 deletions

View File

@@ -4,5 +4,5 @@
use strict;
use warnings;
require './system-status-lib.pl';
&scheduled_collect_system_info(1);
&scheduled_collect_system_info('manual');
&redirect($ENV{'HTTP_REFERER'});

View File

@@ -89,7 +89,7 @@ if (defined(&proc::get_cpu_io_usage)) {
}
# Regenerate OS cache
if ($manual) {
if ($manual eq 'manual') {
if (&foreign_available('webmin')) {
&foreign_require("webmin");
&webmin::detect_operating_system();