mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
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:
@@ -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'});
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user