Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Settings/AdminSettings.php')
-rw-r--r--lib/Settings/AdminSettings.php39
1 files changed, 19 insertions, 20 deletions
diff --git a/lib/Settings/AdminSettings.php b/lib/Settings/AdminSettings.php
index 03bfeb2..6244ec0 100644
--- a/lib/Settings/AdminSettings.php
+++ b/lib/Settings/AdminSettings.php
@@ -22,17 +22,17 @@
namespace OCA\ServerInfo\Settings;
-use OCA\ServerInfo\Os;
-use OCP\AppFramework\Http\TemplateResponse;
-use OCP\IL10N;
-use OCP\IURLGenerator;
-use OCP\Settings\ISettings;
use OCA\ServerInfo\DatabaseStatistics;
+use OCA\ServerInfo\Os;
use OCA\ServerInfo\PhpStatistics;
use OCA\ServerInfo\SessionStatistics;
use OCA\ServerInfo\ShareStatistics;
use OCA\ServerInfo\StorageStatistics;
use OCA\ServerInfo\SystemStatistics;
+use OCP\AppFramework\Http\TemplateResponse;
+use OCP\IL10N;
+use OCP\IURLGenerator;
+use OCP\Settings\ISettings;
class AdminSettings implements ISettings {
@@ -102,20 +102,20 @@ class AdminSettings implements ISettings {
public function getForm() {
$monitoringEndPoint = $this->urlGenerator->getAbsoluteURL('ocs/v2.php/apps/serverinfo/api/v1/info');
$params = [
- 'hostname' => $this-> os -> getHostname(),
- 'osname' => $this-> os -> getOSName(),
- 'memory' => $this-> os -> getMemory(),
- 'cpu' => $this-> os -> getCPUName(),
- 'diskinfo' => $this-> os -> getDiskInfo(),
- 'networkinfo' => $this-> os -> getNetworkInfo(),
- 'networkinterfaces' => $this-> os -> getNetworkInterfaces(),
- 'ocs' => $monitoringEndPoint,
- 'storage' => $this->storageStatistics->getStorageStatistics(),
- 'shares' => $this->shareStatistics->getShareStatistics(),
- 'php' => $this->phpStatistics->getPhpStatistics(),
- 'database' => $this->databaseStatistics->getDatabaseStatistics(),
- 'activeUsers' => $this->sessionStatistics->getSessionStatistics(),
- 'system' => $this->systemStatistics->getSystemStatistics()
+ 'hostname' => $this->os->getHostname(),
+ 'osname' => $this->os->getOSName(),
+ 'memory' => $this->os->getMemory(),
+ 'cpu' => $this->os->getCPUName(),
+ 'diskinfo' => $this->os->getDiskInfo(),
+ 'networkinfo' => $this->os->getNetworkInfo(),
+ 'networkinterfaces' => $this->os->getNetworkInterfaces(),
+ 'ocs' => $monitoringEndPoint,
+ 'storage' => $this->storageStatistics->getStorageStatistics(),
+ 'shares' => $this->shareStatistics->getShareStatistics(),
+ 'php' => $this->phpStatistics->getPhpStatistics(),
+ 'database' => $this->databaseStatistics->getDatabaseStatistics(),
+ 'activeUsers' => $this->sessionStatistics->getSessionStatistics(),
+ 'system' => $this->systemStatistics->getSystemStatistics()
];
return new TemplateResponse('serverinfo', 'settings-admin', $params);
@@ -138,5 +138,4 @@ class AdminSettings implements ISettings {
public function getPriority() {
return 0;
}
-
}