diff --git a/README.md b/README.md index 9c47c754..ff2c14f4 100644 --- a/README.md +++ b/README.md @@ -34,87 +34,95 @@ https:///ocs/v2.php/apps/serverinfo/api/v1/info ### Example XML output: ``` + - - ok - 200 - OK - - - - - 15.0.4.0 - - yes - yes - OC\Memcache\APCu - none - yes - OC\Memcache\Redis - no - 48472801280 - - 1.81 - 1.39 - 1.24 - - 8183664 - 5877568 - 0 - 0 - - 53 - 1 - - 2.0.1 - - - - - 7 - 708860 - 125 - 7 - 7 - 111 - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - - - - Apache/2.4 - - 7.2.14 - 536870912 - 3600 - 535822336 - - - mysql - 10.2.21 - 331382784 - - - - 2 - 4 - 5 - - + + ok + 200 + OK + + + + + 30.0.0.1 + + yes + yes + OC\Memcache\APCu + none + yes + OC\Memcache\Redis + no + 48472801280 + + 1.81 + 1.39 + 1.24 + + 8183664 + 5877568 + 0 + 0 + + + 53 + 1 + + 2.0.1 + + + + + 1719244666 + + + + + 7 + 708860 + 125 + 7 + 7 + 111 + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + + + + Apache/2.4 + + 7.2.14 + 536870912 + 3600 + 535822336 + + + mysql + 10.2.21 + 331382784 + + + + 2 + 4 + 5 + + + ``` ### Example JSON output: -``` -{"ocs":{"meta":{"status":"ok","statuscode":200,"message":"OK"},"data":{"nextcloud":{"system":{"version":"15.0.4.0","theme":"","enable_avatars":"yes","enable_previews":"yes","memcache.local":"OC\\Memcache\\APCu","memcache.distributed":"none","filelocking.enabled":"yes","memcache.locking":"OC\\Memcache\\Redis","debug":"no","freespace":48472944640,"cpuload":[0.84999999999999997779553950749686919152736663818359375,1.04000000000000003552713678800500929355621337890625,1.1699999999999999289457264239899814128875732421875],"mem_total":8183664,"mem_free":5877156,"swap_total":0,"swap_free":0,"apps":{"num_installed":53,"num_updates_available":1,"app_updates":{"files_antivirus":"2.0.1"}}},"storage":{"num_users":7,"num_files":708860,"num_storages":125,"num_storages_local":7,"num_storages_home":7,"num_storages_other":111},"shares":{"num_shares":1,"num_shares_user":0,"num_shares_groups":0,"num_shares_link":0,"num_shares_link_no_password":0,"num_fed_shares_sent":0,"num_fed_shares_received":0,"permissions_4_1":"1"}},"server":{"webserver":"Apache\/2.4","php":{"version":"7.2.14","memory_limit":536870912,"max_execution_time":3600,"upload_max_filesize":535822336},"database":{"type":"mysql","version":"10.2.21","size":331382784}},"activeUsers":{"last5minutes":2,"last1hour":3,"last24hours":5}}}} +```json +{"ocs":{"meta":{"status":"ok","statuscode":200,"message":"OK"},"data":{"nextcloud":{"system":{"version":"30.0.0.1","theme":"","enable_avatars":"yes","enable_previews":"yes","memcache.local":"OC\\Memcache\\APCu","memcache.distributed":"none","filelocking.enabled":"yes","memcache.locking":"OC\\Memcache\\Redis","debug":"no","freespace":48472944640,"cpuload":[0.84999999999999997779553950749686919152736663818359375,1.04000000000000003552713678800500929355621337890625,1.1699999999999999289457264239899814128875732421875],"mem_total":8183664,"mem_free":5877156,"swap_total":0,"swap_free":0,"apps":{"num_installed":53,"num_updates_available":1,"app_updates":{"files_antivirus":"2.0.1"}}},"storage":{"num_users":7,"num_files":708860,"num_storages":125,"num_storages_local":7,"num_storages_home":7,"num_storages_other":111},"shares":{"num_shares":1,"num_shares_user":0,"num_shares_groups":0,"num_shares_link":0,"num_shares_link_no_password":0,"num_fed_shares_sent":0,"num_fed_shares_received":0,"permissions_4_1":"1"}},"server":{"webserver":"Apache\/2.4","php":{"version":"7.2.14","memory_limit":536870912,"max_execution_time":3600,"upload_max_filesize":535822336},"database":{"type":"mysql","version":"10.2.21","size":331382784}},"activeUsers":{"last5minutes":2,"last1hour":3,"last24hours":5}}}} ``` ## Configuration diff --git a/templates/settings-admin.php b/templates/settings-admin.php index 5ae2f2b6..79b7d1be 100644 --- a/templates/settings-admin.php +++ b/templates/settings-admin.php @@ -407,7 +407,7 @@ function FormatMegabytes(int $byte): string {
- +