From 7003616ea51a3f9c6f0b80ff2db60bfe6b814a06 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 16 Oct 2022 15:30:33 +0200 Subject: [PATCH] version 3.3.0 --- NEWS.rst | 48 +- README.rst | 24 +- conf/glances.conf | 1 - docker-compose/glances.conf | 24 +- docs/api.rst | 1017 ++++++++--------- docs/man/glances.1 | 4 +- glances/__init__.py | 2 +- .../static/js/components/plugin-ip.vue | 2 +- glances/outputs/static/public/glances.js | 2 +- glances/plugins/glances_ip.py | 2 - 10 files changed, 571 insertions(+), 555 deletions(-) diff --git a/NEWS.rst b/NEWS.rst index 5d0f34db03..888d5bce23 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -6,7 +6,53 @@ Version 3.3.0 =============== - Version under development: see roadmap here https://github.com/nicolargo/glances/milestone/60 +Enhancements: + + * Migration from AngularJS to Angular/React/Vue #2100 (many thanks to @fr4nc0is) + * Improve the IP module with a link to Censys #2105 + * Add the public IP information to the WebUI #2105 + * Add an option to show a configurable clock/time module to display #2150 + * Add sort information on Docker plugin (console mode). Related to #2138 + * Password files in same configuration dir in effect #2143 + * If the container name is long, then display the start, not the end - Related to #1732 + * Make the Web UI same than Console for CPU plugin + * [WINDOWS] Reorganise CPU stats display #2131 + * Remove the static exportable_plugins list from glances_export.py #1556 + * Limiting data exported for economic storage #1443 + +Bug corrected: + + * glances.conf FS hide not applying #1666 + * AMP: regex with special chars #2152 + * fix(help-screen): add missing shortcuts and columnize algorithmically #2135 + * Correct issue with the regexp filter (use fullmatch instead of match) + * Errors when running Glances as web service #1702 + * Apply alias to Duplicate sensor name #1686 + * Make the hide function in sensors section compliant with lower/upercase #1590 + * Web UI truncates the days part of CPU time counter of the process list #2108 + * Correct alignement issue with the diskio plugin (Console UI) + +Documentation and CI: + + * Refactor Docker file CI + * Add Codespell to the CI pipeline #2148 + * Please add docker-compose example and document example. #2151 + * [DOC] Glances failed to start and some other issues - BSD #2106 + * [REQUEST Docker image] Output log to stdout #2128 (for debian) + * Fix code scanning alert - Clear-text logging of sensitive information #2124 + * Improve makefile (with online documentation) + * buildx failed with: ERROR: failed to solve: python:3.10-slim-buster: no match for platform in manifest #2120 + * [Update docs] Can I export only the fields I need in csv report? #2113 + * Windows Python 3 installation fails on dependency package "future" #2109 + +Contributors for this version: + + * fr4nc0is : a very special thanks to @fr4nc0is for his huge work on the Glances v3.3.0 WebUI !!! + * Kostis Anagnostopoulos + * Kian-Meng Ang + * dependabot[bot] + * matthewaaronthacker + * and your servant Nicolargo =============== Version 3.2.7 diff --git a/README.rst b/README.rst index ecfd1f8fb6..0eeff51ec5 100644 --- a/README.rst +++ b/README.rst @@ -57,15 +57,6 @@ Glances is written in Python and uses libraries to grab information from your system. It is based on an open architecture where developers can add new plugins or exports modules. -Social networks -=============== - -.. image:: https://raw.githubusercontent.com/nicolargo/glances/develop/docs/_static/twitter-icon.png - :target: https://twitter.com/nicolargo - -.. image:: https://raw.githubusercontent.com/nicolargo/glances/develop/docs/_static/reddit.png - :target: https://www.reddit.com/r/glances/ - Requirements ============ @@ -86,6 +77,7 @@ Glances version 4.0 will no longer supports Python 2.x. Optional dependencies: +- ``batinfo`` (for battery monitoring) - ``bernhard`` (for the Riemann export module) - ``bottle`` (for Web server mode) - ``cassandra-driver`` (for the Cassandra export module) @@ -148,7 +140,7 @@ To install it, use the following command: pip install --user 'glances[web]' -For a full installation (with all features: +For a full installation (with all features): .. code-block:: console @@ -205,7 +197,7 @@ The following tags are availables: - *alpine-latest* for a basic Alpine Glances (latest release) version with minimal dependencies - *latest* for a basic Debian Glances image (latest release) with minimal dependencies - *alpine-dev* for a basic Alpine Glances image (development branch) with all dependencies -- *latest* for a basic Debian Glances image (development branch) with all dependencies +- *dev* for a basic Debian Glances image (development branch) with all dependencies You can also specify a version (example: *alpine-3.2.7-full*). @@ -250,7 +242,8 @@ may not be the latest version. Note: The Debian package (and all other Debian-based distributions) do not include anymore the JS statics files used by the Web interface -(see ``issue2021``). +(see ``issue2021``). If you want to add it to your Glances installation, +follow the instructions: ``issue2021comment``. FreeBSD ------- @@ -454,7 +447,9 @@ Donation If you like this open-source project, you can become a sponsor. -See the sponsors_ page (one-time or monthly tier available). +See the Github sponsors_ page (one-time or monthly tier available). + +Or send me some bitcoins: 185KN9FCix3svJYp7JQM7hRMfSKyeaJR4X Author ====== @@ -478,4 +473,5 @@ Glances is distributed under the LGPL version 3 license. See ``COPYING`` for mor .. _wiki: https://github.com/nicolargo/glances/wiki/How-to-contribute-to-Glances-%3F .. _package: https://repology.org/metapackage/glances/packages .. _sponsors: https://github.com/sponsors/nicolargo -.. _issue2021: https://github.com/nicolargo/glances/issues/2021#issuecomment-1197831157 \ No newline at end of file +.. _issue2021: https://github.com/nicolargo/glances/issues/2021#issuecomment-1197831157 +.. _issue2021comment: https://github.com/nicolargo/glances/issues/2021#issuecomment-1197831157 \ No newline at end of file diff --git a/conf/glances.conf b/conf/glances.conf index 986b523add..85326e3359 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -581,7 +581,6 @@ db=glances #user=root #password=root - [kafka] # Configuration for the --export kafka option # http://kafka.apache.org/ diff --git a/docker-compose/glances.conf b/docker-compose/glances.conf index 02744a0892..6f6e418051 100644 --- a/docker-compose/glances.conf +++ b/docker-compose/glances.conf @@ -175,6 +175,17 @@ tx_critical=90 [ip] disable=False +public_refresh_interval=300 +public_ip_disabled=False +# Configuration for the Censys online service +# Need to create an aacount: https://censys.io/login +censys_url=https://search.censys.io/api +# Get your own credential here: https://search.censys.io/account/api +# Enter your credential and uncomment the following lines +#censys_username= +#censys_password= +# List of fields to be displayed in user interface (comma separated) +censys_fields=location:continent,location:country,autonomous_system:name [connections] # Display additional information about TCP connections @@ -209,9 +220,9 @@ hide=loop.*,/dev/loop* [fs] disable=False -# Define the list of hidden file system (comma-separated regexp) +# Define the list of file system to hide (comma-separated regexp) hide=/boot.*,/snap.* -# Define the list of file system to be show (comma-separated) +# Define the list of file system to show (comma-separated regexp) #show=/,/srv # Define filesystem space thresholds in % # Default values if not defined: 50/70/90 @@ -290,6 +301,9 @@ battery_critical=95 # Sensors alias #temp1_alias=Motherboard 0 #temp2_alias=Motherboard 1 +#core 0_temperature_core_alias=CPU Core 0 temp +#core 0_fans_speed_alias=CPU Core 0 fan +#or #core 0_alias=CPU Core 0 #core 1_alias=CPU Core 1 @@ -419,13 +433,16 @@ disable=False #server_4_port=61237 [passwords] -# Define the passwords list +# Define the passwords list related to the [serverlist] section # Syntax: host=password # Where: host is the hostname # password is the clear password # Additionally (and optionally) a default password could be defined #localhost=abc #default=defaultpassword +# +# Define the path of the local '.pwd' file (default is system one) +#local_password_path=~/.config/glances ############################################################################## # Exports @@ -561,6 +578,7 @@ host=localhost port=5984 db=glances # user and password are optional (comment if not configured on the server side) +# If they are used, then the https protocol will be used #user=root #password=root diff --git a/docs/api.rst b/docs/api.rst index dfadc56990..aa4fe6a505 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -15,7 +15,7 @@ GET API status -------------- This entry point should be used to check the API status. -It will return nothing but a 200 return code if everything is OK. +It will return nothing but a 200 return code if everythin is OK. Get the Rest API status:: @@ -60,25 +60,6 @@ Get the plugins list:: "uptime", "wifi"] -GET alert ---------- - -Get plugin stats:: - - # curl http://localhost:61208/api/3/alert - [[1664093575.0, - -1, - "WARNING", - "MEM", - 72.74970140633044, - 72.74970140633044, - 72.74970140633044, - 72.74970140633044, - 1, - [], - "", - "memory_percent"]] - GET amps -------- @@ -93,7 +74,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.6419174671173096}, + "timer": 1.0110199451446533}, {"count": 0, "countmax": 20.0, "countmin": None, @@ -102,14 +83,14 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.6418235301971436}] + "timer": 1.0108563899993896}] Get a specific field:: # curl http://localhost:61208/api/3/amps/name {"name": ["Dropbox", "Python", "Conntrack", "Nginx", "Systemd", "SystemV"]} -Get a specific item when field matches the given value:: +Get a specific item when field matchs the given value:: # curl http://localhost:61208/api/3/amps/name/Dropbox {"Dropbox": [{"count": 0, @@ -120,7 +101,7 @@ Get a specific item when field matches the given value:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.6419174671173096}]} + "timer": 1.0110199451446533}]} GET core -------- @@ -150,7 +131,7 @@ Get plugin stats:: "ctx_switches": 0, "guest": 0.0, "guest_nice": 0.0, - "idle": 71.8, + "idle": 72.9, "interrupts": 0, "iowait": 0.0, "irq": 0.0, @@ -159,10 +140,10 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "syscalls": 0, - "system": 4.0, + "system": 2.7, "time_since_update": 1, - "total": 28.3, - "user": 24.3} + "total": 27.7, + "user": 24.4} Fields descriptions: @@ -185,7 +166,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/3/cpu/total - {"total": 28.3} + {"total": 27.7} GET diskio ---------- @@ -213,7 +194,7 @@ Get a specific field:: # curl http://localhost:61208/api/3/diskio/disk_name {"disk_name": ["sda", "sda1", "sda2", "sda5", "dm-0", "dm-1"]} -Get a specific item when field matches the given value:: +Get a specific item when field matchs the given value:: # curl http://localhost:61208/api/3/diskio/disk_name/sda {"sda": [{"disk_name": "sda", @@ -224,41 +205,6 @@ Get a specific item when field matches the given value:: "write_bytes": 0, "write_count": 0}]} -GET docker ----------- - -Get plugin stats:: - - # curl http://localhost:61208/api/3/docker - [{"Command": ["/entrypoint.sh", "telegraf"], - "Id": "9230f84acadbb7bc8c087d0827389c9a87bb7c7022a1a299dcf4a5f3a441f1d3", - "Image": ["telegraf:latest"], - "Names": ["telegraf"], - "Status": "running", - "Uptime": "1 weeks", - "cpu_percent": 0.0, - "io_r": None, - "io_w": None, - "key": "name", - "memory_usage": 32378880, - "name": "telegraf", - "network_rx": None, - "network_tx": None}, - {"Command": ["/run.sh"], - "Id": "09d96704c3e6b6cb21657d990e3c8ae1e44bac779ded141efb8fed899563dd66", - "Image": ["grafana/grafana:latest"], - "Names": ["grafana"], - "Status": "running", - "Uptime": "1 weeks", - "cpu_percent": 0.0, - "io_r": None, - "io_w": None, - "key": "name", - "memory_usage": None, - "name": "grafana", - "network_rx": None, - "network_tx": None}] - GET fs ------ @@ -266,38 +212,38 @@ Get plugin stats:: # curl http://localhost:61208/api/3/fs [{"device_name": "/dev/mapper/ubuntu--gnome--vg-root", - "free": 76271140864, + "free": 76639870976, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", - "percent": 67.0, + "percent": 66.8, "size": 243334156288, - "used": 154675560448}, - {"device_name": "/dev/mapper/ubuntu--gnome--vg-root", - "free": 76271140864, - "fs_type": "ext4", + "used": 154306830336}, + {"device_name": "zsfpool", + "free": 41811968, + "fs_type": "zfs", "key": "mnt_point", - "mnt_point": "/var/snap/firefox/common/host-hunspell", - "percent": 67.0, - "size": 243334156288, - "used": 154675560448}] + "mnt_point": "/zsfpool", + "percent": 0.3, + "size": 41943040, + "used": 131072}] Get a specific field:: # curl http://localhost:61208/api/3/fs/mnt_point - {"mnt_point": ["/", "/var/snap/firefox/common/host-hunspell"]} + {"mnt_point": ["/", "/zsfpool", "/var/snap/firefox/common/host-hunspell"]} -Get a specific item when field matches the given value:: +Get a specific item when field matchs the given value:: # curl http://localhost:61208/api/3/fs/mnt_point// {"/": [{"device_name": "/dev/mapper/ubuntu--gnome--vg-root", - "free": 76271140864, + "free": 76639870976, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", - "percent": 67.0, + "percent": 66.8, "size": 243334156288, - "used": 154675560448}]} + "used": 154306830336}]} GET ip ------ @@ -323,7 +269,10 @@ GET load Get plugin stats:: # curl http://localhost:61208/api/3/load - {"cpucore": 4, "min1": 0.90625, "min15": 0.75146484375, "min5": 0.71142578125} + {"cpucore": 4, + "min1": 1.7685546875, + "min15": 0.98388671875, + "min5": 1.60888671875} Fields descriptions: @@ -335,7 +284,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/3/load/min1 - {"min1": 0.90625} + {"min1": 1.7685546875} GET mem ------- @@ -343,16 +292,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/3/mem - {"active": 2801201152, - "available": 2135388160, - "buffers": 114778112, - "cached": 2171858944, - "free": 2135388160, - "inactive": 3226710016, - "percent": 72.7, - "shared": 477151232, - "total": 7836200960, - "used": 5700812800} + {"active": 2591764480, + "available": 3011506176, + "buffers": 380743680, + "cached": 2927734784, + "free": 3011506176, + "inactive": 3734249472, + "percent": 61.6, + "shared": 515334144, + "total": 7836188672, + "used": 4824682496} Fields descriptions: @@ -371,7 +320,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/3/mem/total - {"total": 7836200960} + {"total": 7836188672} GET memswap ----------- @@ -379,13 +328,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/3/memswap - {"free": 3843497984, - "percent": 52.4, - "sin": 10964152320, - "sout": 16726073344, + {"free": 7375319040, + "percent": 8.7, + "sin": 44937216, + "sout": 747577344, "time_since_update": 1, "total": 8082419712, - "used": 4238921728} + "used": 707100672} Fields descriptions: @@ -409,29 +358,29 @@ Get plugin stats:: # curl http://localhost:61208/api/3/network [{"alias": None, - "cumulative_cx": 631425138, - "cumulative_rx": 315712569, - "cumulative_tx": 315712569, - "cx": 2492, + "cumulative_cx": 89411064, + "cumulative_rx": 44705532, + "cumulative_tx": 44705532, + "cx": 6622, "interface_name": "lo", "is_up": True, "key": "interface_name", - "rx": 1246, + "rx": 3311, "speed": 0, "time_since_update": 1, - "tx": 1246}, + "tx": 3311}, {"alias": None, - "cumulative_cx": 10328347282, - "cumulative_rx": 9698202574, - "cumulative_tx": 630144708, - "cx": 25906, + "cumulative_cx": 2052012520, + "cumulative_rx": 1919949329, + "cumulative_tx": 132063191, + "cx": 28380, "interface_name": "wlp2s0", "is_up": True, "key": "interface_name", - "rx": 20142, + "rx": 21325, "speed": 0, "time_since_update": 1, - "tx": 5764}] + "tx": 7055}] Fields descriptions: @@ -450,31 +399,27 @@ Get a specific field:: # curl http://localhost:61208/api/3/network/interface_name {"interface_name": ["lo", "wlp2s0", - "br-119e6ee04e05", "br-87386b77b676", "br_grafana", + "br-119e6ee04e05", "docker0", - "veth909d06e", - "veth9b67642", - "vethd7de7ad", - "vboxnet0", "mpqemubr0"]} -Get a specific item when field matches the given value:: +Get a specific item when field matchs the given value:: # curl http://localhost:61208/api/3/network/interface_name/lo {"lo": [{"alias": None, - "cumulative_cx": 631425138, - "cumulative_rx": 315712569, - "cumulative_tx": 315712569, - "cx": 2492, + "cumulative_cx": 89411064, + "cumulative_rx": 44705532, + "cumulative_tx": 44705532, + "cx": 6622, "interface_name": "lo", "is_up": True, "key": "interface_name", - "rx": 1246, + "rx": 3311, "speed": 0, "time_since_update": 1, - "tx": 1246}]} + "tx": 3311}]} GET now ------- @@ -482,7 +427,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/3/now - "2022-09-25 10:12:55 CEST" + "2022-10-16 14:53:36 CEST" GET percpu ---------- @@ -493,29 +438,29 @@ Get plugin stats:: [{"cpu_number": 0, "guest": 0.0, "guest_nice": 0.0, - "idle": 63.0, + "idle": 39.1, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 37.0, - "user": 9.0}, + "system": 2.6, + "total": 60.9, + "user": 58.3}, {"cpu_number": 1, "guest": 0.0, "guest_nice": 0.0, - "idle": 29.0, + "idle": 59.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 71.0, - "user": 43.0}] + "system": 1.7, + "total": 41.0, + "user": 39.3}] Get a specific field:: @@ -534,7 +479,7 @@ Get plugin stats:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.003687, + "status": 0.005856, "timeout": 3}] Get a specific field:: @@ -542,7 +487,7 @@ Get a specific field:: # curl http://localhost:61208/api/3/ports/host {"host": ["192.168.0.254"]} -Get a specific item when field matches the given value:: +Get a specific item when field matchs the given value:: # curl http://localhost:61208/api/3/ports/host/192.168.0.254 {"192.168.0.254": [{"description": "DefaultGateway", @@ -551,7 +496,7 @@ Get a specific item when field matches the given value:: "port": 0, "refresh": 30, "rtt_warning": None, - "status": 0.003687, + "status": 0.005856, "timeout": 3}]} GET processcount @@ -560,12 +505,12 @@ GET processcount Get plugin stats:: # curl http://localhost:61208/api/3/processcount - {"pid_max": 0, "running": 1, "sleeping": 294, "thread": 1715, "total": 363} + {"pid_max": 0, "running": 1, "sleeping": 277, "thread": 1275, "total": 341} Get a specific field:: # curl http://localhost:61208/api/3/processcount/total - {"total": 363} + {"total": 341} GET processlist --------------- @@ -573,33 +518,51 @@ GET processlist Get plugin stats:: # curl http://localhost:61208/api/3/processlist - [{"cmdline": ["/snap/firefox/1877/usr/lib/firefox/firefox"], + [{"cmdline": ["/snap/firefox/1877/usr/lib/firefox/firefox", + "-contentproc", + "-childID", + "4", + "-isForBrowser", + "-prefsLen", + "35977", + "-prefMapSize", + "236080", + "-jsInitLen", + "246848", + "-parentBuildID", + "20220922230616", + "-appDir", + "/snap/firefox/1877/usr/lib/firefox/browser", + "{8b6f29ad-9cbd-4eac-aac5-a3a7552fe4c0}", + "4281", + "true", + "tab"], "cpu_percent": 0.0, - "cpu_times": pcputimes(user=968.12, system=309.91, children_user=723.63, children_system=106.35, iowait=0.0), + "cpu_times": pcputimes(user=523.33, system=98.59, children_user=0.0, children_system=0.0, iowait=0.0), "gids": pgids(real=1000, effective=1000, saved=1000), - "io_counters": [1140517888, 1305808896, 0, 0, 0], + "io_counters": [11357184, 0, 0, 0, 0], "key": "pid", - "memory_info": pmem(rss=489631744, vms=12905615360, shared=120008704, text=634880, lib=0, data=1056870400, dirty=0), - "memory_percent": 6.248330619637402, - "name": "firefox", + "memory_info": pmem(rss=478035968, vms=3425415168, shared=92233728, text=634880, lib=0, data=838303744, dirty=0), + "memory_percent": 6.100363174104035, + "name": "WebExtensions", "nice": 0, - "num_threads": 114, - "pid": 477633, + "num_threads": 20, + "pid": 4719, "status": "S", "time_since_update": 1, "username": "nicolargo"}, - {"cmdline": ["/usr/bin/gnome-shell"], + {"cmdline": ["/snap/firefox/1877/usr/lib/firefox/firefox"], "cpu_percent": 0.0, - "cpu_times": pcputimes(user=6381.53, system=1549.49, children_user=24871.71, children_system=6569.25, iowait=0.0), + "cpu_times": pcputimes(user=2225.75, system=781.08, children_user=1849.32, children_system=399.5, iowait=0.0), "gids": pgids(real=1000, effective=1000, saved=1000), - "io_counters": [14181123072, 15716446208, 0, 0, 0], + "io_counters": [1147966464, 3020849152, 0, 0, 0], "key": "pid", - "memory_info": pmem(rss=403861504, vms=5501358080, shared=47898624, text=8192, lib=0, data=563445760, dirty=0), - "memory_percent": 5.153792074265538, - "name": "gnome-shell", + "memory_info": pmem(rss=437329920, vms=13218963456, shared=132329472, text=634880, lib=0, data=1301897216, dirty=0), + "memory_percent": 5.580900847406243, + "name": "firefox", "nice": 0, - "num_threads": 14, - "pid": 4784, + "num_threads": 126, + "pid": 4281, "status": "S", "time_since_update": 1, "username": "nicolargo"}] @@ -607,243 +570,186 @@ Get plugin stats:: Get a specific field:: # curl http://localhost:61208/api/3/processlist/pid - {"pid": [477633, - 4784, - 477906, - 371539, - 478013, - 371076, - 378577, - 371144, - 534609, - 478017, - 535655, - 535360, - 8690, - 491961, - 318967, - 371369, - 174274, - 477924, - 27079, - 371161, - 7012, - 371008, - 385575, - 535956, - 535901, - 525390, - 535999, - 371044, - 516439, - 4677, - 536126, - 378578, - 385601, - 5288, - 2173, - 138155, - 294867, - 86902, - 27101, - 231684, - 536118, - 231559, - 451763, - 231727, - 478972, - 364779, - 454839, - 143873, - 371175, - 490395, - 451764, - 343, - 306104, - 371055, - 57024, - 479017, - 6654, - 371492, - 174164, - 2410, - 5060, - 477843, - 385574, - 4955, - 4950, - 174166, - 4954, - 5295, - 4882, - 5075, - 4985, - 5320, - 4953, - 490414, - 8896, + {"pid": [4719, + 4281, + 17501, + 4494, + 107498, + 10818, + 3549, + 17308, + 17347, + 4498, + 5818, + 50586, + 4463, + 107499, + 19717, + 17233, + 107901, + 17346, + 11646, + 109608, + 109513, + 109404, + 109647, + 17274, + 17754, + 3499, + 9453, + 58814, + 17566, + 2245, + 109831, + 17755, + 5126, + 17373, + 2429, + 49129, + 3844, + 4440, + 51440, + 17292, + 3651, + 5659, + 1405, + 4062, + 4055, + 1615, + 3627, + 3364, + 1567, + 3744, + 4977, + 1539, + 1381, + 3663, + 3737, + 2371, + 1369, + 3743, + 3806, + 17237, + 1945, + 3958, + 3618, + 2412, + 17238, + 3592, + 1391, + 3760, + 4087, + 1415, 1, - 4980, - 8716, - 1234, - 8974, - 490455, - 1255, - 4592, - 9249, - 9030, - 4581, - 5151, - 4859, - 1282, - 371013, - 4850, - 4868, - 530054, - 1283, - 27046, - 21750, - 12787, - 4562, - 4608, - 1430, - 4762, - 4963, - 445656, - 8689, - 21749, - 371014, - 5774, - 4894, - 9250, - 4600, - 4770, - 2107, - 2894, - 1387, - 5031, - 13199, - 1893, - 13659, - 8633, - 1233, - 7033, - 13217, - 5132, - 1883, - 4956, - 7265, - 1080, - 388, - 1431, - 4610, - 4814, - 231540, - 231642, - 231697, - 4958, - 8648, - 1278, - 4901, - 5078, - 1216, - 4864, - 5044, - 1229, - 1242, - 2370, - 4833, - 4949, - 4952, - 371324, - 27078, - 4809, - 2334, - 1251, - 4678, - 8584, - 4822, - 4957, - 5054, - 294892, - 4787, - 4951, - 8583, - 1277, - 5085, - 5160, - 1256, - 4972, - 4615, - 4938, - 4683, - 294886, - 8600, - 4796, - 4848, - 4970, - 1225, - 60479, - 4803, - 536103, - 1244, - 4795, - 371029, - 1260, - 8936, - 1264, - 174259, - 4749, - 1445, - 98466, - 1232, - 8860, - 1613, - 4589, - 1077, - 1285, - 5176, - 2897, - 1081, - 2112, - 2154, - 71513, - 4590, - 2131, - 1088, - 2367, - 1090, - 1228, - 2368, - 1217, - 371016, - 536125, - 1949, - 8586, - 4948, - 2125, - 231626, - 231453, - 231471, - 231611, - 4654, - 227172, - 231459, - 231492, - 231514, - 231500, - 231478, - 4582, - 231522, - 5403, - 2124, - 1289, - 445844, + 3742, + 1587, + 49142, + 4518, + 3929, + 2917, + 3528, + 2187, + 3739, + 49148, + 51420, + 3736, + 3444, + 3345, + 16698, + 1416, + 3557, + 1487, + 3891, + 3353, + 3745, + 1593, + 3637, + 3750, + 3817, + 1352, + 1412, + 1917, + 2405, + 14997, + 1408, + 3599, + 3755, + 15018, + 3569, + 3697, + 54676, + 3905, + 3741, + 3373, + 2406, + 1392, + 1368, + 3943, + 3380, + 3378, + 3547, + 90800, + 3588, + 3799, + 3804, + 109240, + 3813, + 1375, + 3753, + 3604, + 3734, + 3747, + 3729, + 1407, + 3633, + 54624, + 3583, + 3385, + 1397, + 11667, + 3748, + 3437, + 3616, + 2920, + 3361, + 17516, + 1399, + 3362, + 3517, + 1365, + 3556, + 1360, + 1743, + 1367, + 1176, + 1377, + 1470, + 3953, + 58637, + 109810, + 17258, + 3221, + 58407, + 54523, + 1363, + 3354, + 4187, + 1353, + 109830, + 3425, + 2208, + 3733, + 1485, + 2252, + 2226, + 58639, + 17240, 2, 3, 4, 5, 7, + 9, 10, 11, 12, @@ -851,22 +757,21 @@ Get a specific field:: 14, 15, 16, - 17, 18, 19, 20, 21, - 23, + 22, 24, 25, 26, 27, - 29, + 28, 30, 31, 32, 33, - 35, + 34, 36, 37, 38, @@ -876,125 +781,179 @@ Get a specific field:: 42, 43, 44, - 91, + 45, 92, 93, - 95, + 94, 96, 97, 98, 99, 100, - 102, + 101, + 103, 105, 106, 108, - 109, - 111, - 116, - 117, + 110, + 112, + 114, 118, - 128, - 131, - 137, - 171, - 173, - 189, + 119, + 121, + 130, + 133, + 139, + 188, + 195, 196, 197, 198, + 199, + 200, 201, 202, - 203, - 204, - 205, - 209, 210, - 215, + 211, 216, - 233, - 281, - 282, - 370, - 371, - 389, - 507, - 549, - 570, - 571, - 572, - 573, - 803, - 804, - 805, - 806, - 807, - 808, - 809, - 810, - 811, - 812, - 813, - 814, - 2146, - 2205, - 2225, - 2286, - 2289, - 2290, - 2291, - 2293, - 2295, - 2296, - 2297, - 4847, - 8614, - 295453, - 490216, - 529305, - 530607, - 530608, - 530944, - 532032, - 532103, - 532478, - 533125, - 534096, - 534475, - 534799, - 534800, - 535155, - 535706, - 535845, - 535954, - 535971, - 535974, - 536119]} - -Get a specific item when field matches the given value:: - - # curl http://localhost:61208/api/3/processlist/pid/477633 - {"477633": [{"cmdline": ["/snap/firefox/1877/usr/lib/firefox/firefox"], - "cpu_percent": 0.0, - "cpu_times": [968.12, 309.91, 723.63, 106.35, 0.0], - "gids": [1000, 1000, 1000], - "io_counters": [1140517888, 1305808896, 0, 0, 0], - "key": "pid", - "memory_info": [489631744, - 12905615360, - 120008704, - 634880, - 0, - 1056870400, - 0], - "memory_percent": 6.248330619637402, - "name": "firefox", - "nice": 0, - "num_threads": 114, - "pid": 477633, - "status": "S", - "time_since_update": 1, - "username": "nicolargo"}]} + 217, + 234, + 283, + 284, + 359, + 362, + 386, + 485, + 495, + 559, + 560, + 561, + 562, + 778, + 779, + 780, + 781, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 890, + 891, + 898, + 899, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 1891, + 1897, + 2256, + 2266, + 3584, + 24098, + 24099, + 24101, + 48940, + 48941, + 48942, + 48943, + 48945, + 48992, + 58642, + 58643, + 58644, + 58645, + 58646, + 58647, + 58648, + 58649, + 58650, + 98606, + 102668, + 105560, + 105857, + 106032, + 106313, + 106388, + 106546, + 106715, + 106836, + 107074, + 107590, + 107596, + 109342, + 109688, + 109690, + 109759]} + +Get a specific item when field matchs the given value:: + + # curl http://localhost:61208/api/3/processlist/pid/4719 + {"4719": [{"cmdline": ["/snap/firefox/1877/usr/lib/firefox/firefox", + "-contentproc", + "-childID", + "4", + "-isForBrowser", + "-prefsLen", + "35977", + "-prefMapSize", + "236080", + "-jsInitLen", + "246848", + "-parentBuildID", + "20220922230616", + "-appDir", + "/snap/firefox/1877/usr/lib/firefox/browser", + "{8b6f29ad-9cbd-4eac-aac5-a3a7552fe4c0}", + "4281", + "true", + "tab"], + "cpu_percent": 0.0, + "cpu_times": [523.33, 98.59, 0.0, 0.0, 0.0], + "gids": [1000, 1000, 1000], + "io_counters": [11357184, 0, 0, 0, 0], + "key": "pid", + "memory_info": [478035968, + 3425415168, + 92233728, + 634880, + 0, + 838303744, + 0], + "memory_percent": 6.100363174104035, + "name": "WebExtensions", + "nice": 0, + "num_threads": 20, + "pid": 4719, + "status": "S", + "time_since_update": 1, + "username": "nicolargo"}]} GET psutilversion ----------------- @@ -1010,69 +969,69 @@ GET quicklook Get plugin stats:: # curl http://localhost:61208/api/3/quicklook - {"cpu": 28.3, - "cpu_hz": 3000000000.0, - "cpu_hz_current": 2152620500.0, + {"cpu": 27.7, + "cpu_hz": 1700000000.0, + "cpu_hz_current": 1249079250.0, "cpu_name": "Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz", - "mem": 72.7, + "mem": 61.6, "percpu": [{"cpu_number": 0, "guest": 0.0, "guest_nice": 0.0, - "idle": 63.0, + "idle": 39.1, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 37.0, - "user": 9.0}, + "system": 2.6, + "total": 60.9, + "user": 58.3}, {"cpu_number": 1, "guest": 0.0, "guest_nice": 0.0, - "idle": 29.0, + "idle": 59.0, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 1.0, - "total": 71.0, - "user": 43.0}, + "system": 1.7, + "total": 41.0, + "user": 39.3}, {"cpu_number": 2, "guest": 0.0, "guest_nice": 0.0, - "idle": 69.0, + "idle": 94.8, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 2.0, - "total": 31.0, - "user": 3.0}, + "system": 0.9, + "total": 5.2, + "user": 4.3}, {"cpu_number": 3, "guest": 0.0, "guest_nice": 0.0, - "idle": 49.0, + "idle": 94.8, "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 4.0, - "total": 51.0, - "user": 20.0}], - "swap": 52.4} + "system": 1.7, + "total": 5.2, + "user": 3.4}], + "swap": 8.7} Get a specific field:: # curl http://localhost:61208/api/3/quicklook/cpu - {"cpu": 28.3} + {"cpu": 27.7} GET sensors ----------- @@ -1108,7 +1067,7 @@ Get a specific field:: "SODIMM", "BAT BAT0"]} -Get a specific item when field matches the given value:: +Get a specific item when field matchs the given value:: # curl http://localhost:61208/api/3/sensors/label/acpitz 1 {"acpitz 1": [{"critical": 105, @@ -1129,7 +1088,7 @@ Get plugin stats:: "hr_name": "Ubuntu 22.04 64bit", "linux_distro": "Ubuntu 22.04", "os_name": "Linux", - "os_version": "5.15.0-46-generic", + "os_version": "5.15.0-48-generic", "platform": "64bit"} Get a specific field:: @@ -1143,7 +1102,7 @@ GET uptime Get plugin stats:: # curl http://localhost:61208/api/3/uptime - {"seconds": 1904209} + {"seconds": 105130} GET all stats ------------- @@ -1151,7 +1110,7 @@ GET all stats Get all Glances stats:: # curl http://localhost:61208/api/3/all - Return a very big dictionary (avoid using this request, performances will be poor)... + Return a very big dictionnary (avoid using this request, performances will be poor)... GET stats history ----------------- @@ -1159,33 +1118,33 @@ GET stats history History of a plugin:: # curl http://localhost:61208/api/3/cpu/history - {"system": [["2022-09-25T10:12:55.884570", 4.0], - ["2022-09-25T10:12:56.946166", 4.0], - ["2022-09-25T10:12:58.050984", 1.9]], - "user": [["2022-09-25T10:12:55.884564", 24.3], - ["2022-09-25T10:12:56.946162", 24.3], - ["2022-09-25T10:12:58.050976", 4.3]]} + {"system": [["2022-10-16T14:53:37.160026", 2.7], + ["2022-10-16T14:53:38.211423", 2.7], + ["2022-10-16T14:53:39.414393", 0.8]], + "user": [["2022-10-16T14:53:37.160016", 24.4], + ["2022-10-16T14:53:38.211414", 24.4], + ["2022-10-16T14:53:39.414386", 2.9]]} Limit history to last 2 values:: # curl http://localhost:61208/api/3/cpu/history/2 - {"system": [["2022-09-25T10:12:56.946166", 4.0], - ["2022-09-25T10:12:58.050984", 1.9]], - "user": [["2022-09-25T10:12:56.946162", 24.3], - ["2022-09-25T10:12:58.050976", 4.3]]} + {"system": [["2022-10-16T14:53:38.211423", 2.7], + ["2022-10-16T14:53:39.414393", 0.8]], + "user": [["2022-10-16T14:53:38.211414", 24.4], + ["2022-10-16T14:53:39.414386", 2.9]]} History for a specific field:: # curl http://localhost:61208/api/3/cpu/system/history - {"system": [["2022-09-25T10:12:55.884570", 4.0], - ["2022-09-25T10:12:56.946166", 4.0], - ["2022-09-25T10:12:58.050984", 1.9]]} + {"system": [["2022-10-16T14:53:37.160026", 2.7], + ["2022-10-16T14:53:38.211423", 2.7], + ["2022-10-16T14:53:39.414393", 0.8]]} Limit history for a specific field to last 2 values:: # curl http://localhost:61208/api/3/cpu/system/history - {"system": [["2022-09-25T10:12:56.946166", 4.0], - ["2022-09-25T10:12:58.050984", 1.9]]} + {"system": [["2022-10-16T14:53:38.211423", 2.7], + ["2022-10-16T14:53:39.414393", 0.8]]} GET limits (used for thresholds) -------------------------------- diff --git a/docs/man/glances.1 b/docs/man/glances.1 index 8636861429..47462f77b1 100644 --- a/docs/man/glances.1 +++ b/docs/man/glances.1 @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. -.TH "GLANCES" "1" "Sep 25, 2022" "3.3.0_beta1" "Glances" +.TH "GLANCES" "1" "Oct 16, 2022" "3.3.0" "Glances" .SH NAME glances \- An eye on your system .SH SYNOPSIS @@ -577,7 +577,7 @@ _ T{ \fBWindows\fP T} T{ -%APPDATA%\eglancesglances.conf +%APPDATA%\eglances\eglances.conf T} _ .TE diff --git a/glances/__init__.py b/glances/__init__.py index 9693a0b2b2..2cd5dc05ca 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -19,7 +19,7 @@ # Global name # Version should start and end with a numerical char # See https://packaging.python.org/specifications/core-metadata/#version -__version__ = '3.3.0_beta1' +__version__ = '3.3.0' __author__ = 'Nicolas Hennion ' __license__ = 'LGPLv3' diff --git a/glances/outputs/static/js/components/plugin-ip.vue b/glances/outputs/static/js/components/plugin-ip.vue index 01c9d4c830..6604a6a0b6 100644 --- a/glances/outputs/static/js/components/plugin-ip.vue +++ b/glances/outputs/static/js/components/plugin-ip.vue @@ -4,7 +4,7 @@ {{ address }}/{{ maskCdir }} Pub {{ publicAddress }} - ({{ publicInfo }}) + {{ publicInfo }} diff --git a/glances/outputs/static/public/glances.js b/glances/outputs/static/public/glances.js index a29a27fded..db4f5bb65a 100644 --- a/glances/outputs/static/public/glances.js +++ b/glances/outputs/static/public/glances.js @@ -28,4 +28,4 @@ function n(t){return"[object Object]"===Object.prototype.toString.call(t)}Object * http://jaywcjlove.github.io/hotkeys * Licensed under the MIT license */ -var Ys="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Qs(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on".concat(e),(function(){n(window.event)}))}function to(t,e){for(var n=e.slice(0,e.length-1),r=0;r=0;)e[n-1]+=",",e.splice(n,1),n=e.lastIndexOf("");return e}for(var no={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Ys?173:189,"=":Ys?61:187,";":Ys?59:186,"'":222,"[":219,"]":221,"\\":220},ro={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},io={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},so={16:!1,18:!1,17:!1,91:!1},oo={},lo=1;lo<20;lo++)no["f".concat(lo)]=111+lo;var ao=[],co=!1,uo="all",fo=[],po=function(t){return no[t.toLowerCase()]||ro[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function ho(t){uo=t||"all"}function go(){return uo||"all"}var mo=function(t){var e=t.key,n=t.scope,r=t.method,i=t.splitKey,s=void 0===i?"+":i;eo(e).forEach((function(t){var e=t.split(s),i=e.length,o=e[i-1],l="*"===o?"*":po(o);if(oo[l]){n||(n=go());var a=i>1?to(ro,e):[];oo[l]=oo[l].filter((function(t){return!((!r||t.method===r)&&t.scope===n&&function(t,e){for(var n=t.length>=e.length?t:e,r=t.length>=e.length?e:t,i=!0,s=0;s0,so)Object.prototype.hasOwnProperty.call(so,s)&&(!so[s]&&e.mods.indexOf(+s)>-1||so[s]&&-1===e.mods.indexOf(+s))&&(i=!1);(0!==e.mods.length||so[16]||so[18]||so[17]||so[91])&&!i&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function vo(t,e){var n=oo["*"],r=t.keyCode||t.which||t.charCode;if(yo.filter.call(this,t)){if(93!==r&&224!==r||(r=91),-1===ao.indexOf(r)&&229!==r&&ao.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var n=io[e];t[e]&&-1===ao.indexOf(n)?ao.push(n):!t[e]&&ao.indexOf(n)>-1?ao.splice(ao.indexOf(n),1):"metaKey"===e&&t[e]&&3===ao.length&&(t.ctrlKey||t.shiftKey||t.altKey||(ao=ao.slice(ao.indexOf(n))))})),r in so){for(var i in so[r]=!0,ro)ro[i]===r&&(yo[i]=!0);if(!n)return}for(var s in so)Object.prototype.hasOwnProperty.call(so,s)&&(so[s]=t[io[s]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===ao.indexOf(17)&&ao.push(17),-1===ao.indexOf(18)&&ao.push(18),so[17]=!0,so[18]=!0);var o=go();if(n)for(var l=0;l1&&(i=to(ro,t)),(t="*"===(t=t[t.length-1])?"*":po(t))in oo||(oo[t]=[]),oo[t].push({keyup:a,keydown:c,scope:s,mods:i,shortcut:r[l],method:n,key:r[l],splitKey:u,element:o});void 0!==o&&!function(t){return fo.indexOf(t)>-1}(o)&&window&&(fo.push(o),Qs(o,"keydown",(function(t){vo(t,o)}),d),co||(co=!0,Qs(window,"focus",(function(){ao=[]}),d)),Qs(o,"keyup",(function(t){vo(t,o),function(t){var e=t.keyCode||t.which||t.charCode,n=ao.indexOf(e);if(n>=0&&ao.splice(n,1),t.key&&"meta"===t.key.toLowerCase()&&ao.splice(0,ao.length),93!==e&&224!==e||(e=91),e in so)for(var r in so[e]=!1,ro)ro[r]===e&&(yo[r]=!1)}(t)}),d))}var wo={getPressedKeyString:function(){return ao.map((function(t){return e=t,Object.keys(no).find((function(t){return no[t]===e}))||function(t){return Object.keys(ro).find((function(e){return ro[e]===t}))}(t)||String.fromCharCode(t);var e}))},setScope:ho,getScope:go,deleteScope:function(t,e){var n,r;for(var i in t||(t=go()),oo)if(Object.prototype.hasOwnProperty.call(oo,i))for(n=oo[i],r=0;r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(oo).forEach((function(n){var r=oo[n].find((function(n){return n.scope===e&&n.shortcut===t}));r&&r.method&&r.method()}))},unbind:function(t){if(void 0===t)Object.keys(oo).forEach((function(t){return delete oo[t]}));else if(Array.isArray(t))t.forEach((function(t){t.key&&mo(t)}));else if("object"==typeof t)t.key&&mo(t);else if("string"==typeof t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=this.limits[t][a]){var c=a.lastIndexOf("_");return a.substring(c+1)+s}}return"ok"+s}getAlertLog(t,e,n,r){return this.getAlert(t,e,n,r,!0)}};const Oo=new class{data=void 0;init(t=60){let e;const n=()=>(ko.status="PENDING",Promise.all([fetch("api/3/all",{method:"GET"}).then((t=>t.json())),fetch("api/3/all/views",{method:"GET"}).then((t=>t.json()))]).then((t=>{const e={stats:t[0],views:t[1],isBsd:"FreeBSD"===t[0].system.os_name,isLinux:"Linux"===t[0].system.os_name,isSunOS:"SunOS"===t[0].system.os_name,isMac:"Darwin"===t[0].system.os_name,isWindows:"Windows"===t[0].system.os_name};this.data=e,ko.data=e,ko.status="SUCCESS"})).catch((t=>{console.log(t),ko.status="FAILURE"})).then((()=>{e&&clearTimeout(e),e=setTimeout(n,1e3*t)})));n(),fetch("api/3/all/limits",{method:"GET"}).then((t=>t.json())).then((t=>{To.setLimits(t)})),fetch("api/3/args",{method:"GET"}).then((t=>t.json())).then(((t={})=>{ko.args={...ko.args,...t}})),fetch("api/3/config",{method:"GET"}).then((t=>t.json())).then(((t={})=>{ko.config={...ko.config,...t}}))}getData(){return this.data}};const Ao=new class{constructor(){this.favico=new(So())({animation:"none"})}badge(t){this.favico.badge(t)}reset(){this.favico.reset()}},Eo={key:0},Po={class:"container-fluid"},Lo={class:"row"},jo={class:"col-sm-12 col-lg-24"},Mo=ai("div",{class:"row"}," ",-1),Do={class:"row"},Io={class:"col-sm-12 col-lg-24"},Ro=ai("div",{class:"row"}," ",-1),No={class:"divTable",style:{width:"100%"}},qo={class:"divTableBody"},Uo={class:"divTableRow"},Fo={class:"divTableHead"},Bo={class:"divTableHead"},zo={class:"divTableHead"},$o={class:"divTableHead"},Ho={class:"divTableRow"},Vo={class:"divTableCell"},Go={class:"divTableCell"},Wo={class:"divTableCell"},Zo={class:"divTableCell"},Ko={class:"divTableRow"},Xo={class:"divTableCell"},Jo={class:"divTableCell"},Yo={class:"divTableCell"},Qo={class:"divTableCell"},tl={class:"divTableRow"},el={class:"divTableCell"},nl={class:"divTableCell"},rl={class:"divTableCell"},il={class:"divTableCell"},sl={class:"divTableRow"},ol={class:"divTableCell"},ll={class:"divTableCell"},al={class:"divTableCell"},cl={class:"divTableCell"},ul={class:"divTableRow"},dl={class:"divTableCell"},fl={class:"divTableCell"},pl={class:"divTableCell"},hl={class:"divTableCell"},gl={class:"divTableRow"},ml={class:"divTableCell"},bl={class:"divTableCell"},vl={class:"divTableCell"},yl={class:"divTableCell"},wl={class:"divTableRow"},_l={class:"divTableCell"},xl={class:"divTableCell"},kl={class:"divTableCell"},Cl={class:"divTableCell"},Sl={class:"divTableRow"},Tl=ai("div",{class:"divTableCell"}," ",-1),Ol={class:"divTableCell"},Al={class:"divTableCell"},El={class:"divTableCell"},Pl={class:"divTableRow"},Ll=ai("div",{class:"divTableCell"}," ",-1),jl={class:"divTableCell"},Ml={class:"divTableCell"},Dl={class:"divTableCell"},Il={class:"divTableRow"},Rl=ai("div",{class:"divTableCell"}," ",-1),Nl={class:"divTableCell"},ql={class:"divTableCell"},Ul={class:"divTableCell"},Fl={class:"divTableRow"},Bl=ai("div",{class:"divTableCell"}," ",-1),zl={class:"divTableCell"},$l=ai("div",{class:"divTableCell"}," ",-1),Hl={class:"divTableCell"},Vl={class:"divTableRow"},Gl=ai("div",{class:"divTableCell"}," ",-1),Wl={class:"divTableCell"},Zl=ai("div",{class:"divTableCell"}," ",-1),Kl=ai("div",{class:"divTableCell"}," ",-1),Xl={class:"divTableRow"},Jl=ai("div",{class:"divTableCell"}," ",-1),Yl={class:"divTableCell"},Ql=ai("div",{class:"divTableCell"}," ",-1),ta=ai("div",{class:"divTableCell"}," ",-1),ea={class:"divTableRow"},na=ai("div",{class:"divTableCell"}," ",-1),ra={class:"divTableCell"},ia=ai("div",{class:"divTableCell"}," ",-1),sa=ai("div",{class:"divTableCell"}," ",-1),oa={class:"divTableRow"},la=ai("div",{class:"divTableCell"}," ",-1),aa={class:"divTableCell"},ca=ai("div",{class:"divTableCell"}," ",-1),ua=ai("div",{class:"divTableCell"}," ",-1),da={class:"divTableRow"},fa=ai("div",{class:"divTableCell"}," ",-1),pa={class:"divTableCell"},ha=ai("div",{class:"divTableCell"}," ",-1),ga=ai("div",{class:"divTableCell"}," ",-1),ma={class:"divTableRow"},ba=ai("div",{class:"divTableCell"}," ",-1),va={class:"divTableCell"},ya=ai("div",{class:"divTableCell"}," ",-1),wa=ai("div",{class:"divTableCell"}," ",-1),_a={class:"divTableRow"},xa=ai("div",{class:"divTableCell"}," ",-1),ka={class:"divTableCell"},Ca=ai("div",{class:"divTableCell"}," ",-1),Sa=ai("div",{class:"divTableCell"}," ",-1),Ta={class:"divTableRow"},Oa=ai("div",{class:"divTableCell"}," ",-1),Aa={class:"divTableCell"},Ea=ai("div",{class:"divTableCell"}," ",-1),Pa=ai("div",{class:"divTableCell"}," ",-1),La={class:"divTableRow"},ja=ai("div",{class:"divTableCell"}," ",-1),Ma={class:"divTableCell"},Da=ai("div",{class:"divTableCell"}," ",-1),Ia=ai("div",{class:"divTableCell"}," ",-1),Ra=ai("div",null,[ai("p",null,[fi(" For an exhaustive list of key bindings, "),ai("a",{href:"https://glances.readthedocs.io/en/latest/cmds.html#interactive-commands"},"click here"),fi(". ")])],-1),Na=ai("div",null,[ai("p",null,[fi("Press "),ai("b",null,"h"),fi(" to came back to Glances.")])],-1);const qa={data:()=>({help:void 0}),mounted(){fetch("api/3/help",{method:"GET"}).then((t=>t.json())).then((t=>this.help=t))}};var Ua=n(3744);const Fa=(0,Ua.Z)(qa,[["render",function(t,e,n,r,i,s){return i.help?(Xr(),ei("div",Eo,[ai("div",Po,[ai("div",Lo,[ai("div",jo,O(i.help.version)+" "+O(i.help.psutil_version),1)]),Mo,ai("div",Do,[ai("div",Io,O(i.help.configuration_file),1)]),Ro]),ai("div",No,[ai("div",qo,[ai("div",Uo,[ai("div",Fo,O(i.help.header_sort.replace(":","")),1),ai("div",Bo,O(i.help.header_show_hide.replace(":","")),1),ai("div",zo,O(i.help.header_toggle.replace(":","")),1),ai("div",$o,O(i.help.header_miscellaneous.replace(":","")),1)]),ai("div",Ho,[ai("div",Vo,O(i.help.sort_auto),1),ai("div",Go,O(i.help.show_hide_application_monitoring),1),ai("div",Wo,O(i.help.toggle_bits_bytes),1),ai("div",Zo,O(i.help.misc_erase_process_filter),1)]),ai("div",Ko,[ai("div",Xo,O(i.help.sort_cpu),1),ai("div",Jo,O(i.help.show_hide_diskio),1),ai("div",Yo,O(i.help.toggle_count_rate),1),ai("div",Qo,O(i.help.misc_generate_history_graphs),1)]),ai("div",tl,[ai("div",el,O(i.help.sort_io_rate),1),ai("div",nl,O(i.help.show_hide_docker),1),ai("div",rl,O(i.help.toggle_used_free),1),ai("div",il,O(i.help.misc_help),1)]),ai("div",sl,[ai("div",ol,O(i.help.sort_mem),1),ai("div",ll,O(i.help.show_hide_top_extended_stats),1),ai("div",al,O(i.help.toggle_bar_sparkline),1),ai("div",cl,O(i.help.misc_accumulate_processes_by_program),1)]),ai("div",ul,[ai("div",dl,O(i.help.sort_process_name),1),ai("div",fl,O(i.help.show_hide_filesystem),1),ai("div",pl,O(i.help.toggle_separate_combined),1),ai("div",hl,O(i.help.misc_kill_process)+" - N/A in WebUI ",1)]),ai("div",gl,[ai("div",ml,O(i.help.sort_cpu_times),1),ai("div",bl,O(i.help.show_hide_gpu),1),ai("div",vl,O(i.help.toggle_live_cumulative),1),ai("div",yl,O(i.help.misc_reset_processes_summary_min_max),1)]),ai("div",wl,[ai("div",_l,O(i.help.sort_user),1),ai("div",xl,O(i.help.show_hide_ip),1),ai("div",kl,O(i.help.toggle_linux_percentage),1),ai("div",Cl,O(i.help.misc_quit),1)]),ai("div",Sl,[Tl,ai("div",Ol,O(i.help.show_hide_tcp_connection),1),ai("div",Al,O(i.help.toggle_cpu_individual_combined),1),ai("div",El,O(i.help.misc_reset_history),1)]),ai("div",Pl,[Ll,ai("div",jl,O(i.help.show_hide_alert),1),ai("div",Ml,O(i.help.toggle_gpu_individual_combined),1),ai("div",Dl,O(i.help.misc_delete_warning_alerts),1)]),ai("div",Il,[Rl,ai("div",Nl,O(i.help.show_hide_network),1),ai("div",ql,O(i.help.toggle_short_full),1),ai("div",Ul,O(i.help.misc_delete_warning_and_critical_alerts),1)]),ai("div",Fl,[Bl,ai("div",zl,O(i.help.sort_cpu_times),1),$l,ai("div",Hl,O(i.help.misc_edit_process_filter_pattern)+" - N/A in WebUI ",1)]),ai("div",Vl,[Gl,ai("div",Wl,O(i.help.show_hide_irq),1),Zl,Kl]),ai("div",Xl,[Jl,ai("div",Yl,O(i.help.show_hide_raid_plugin),1),Ql,ta]),ai("div",ea,[na,ai("div",ra,O(i.help.show_hide_sensors),1),ia,sa]),ai("div",oa,[la,ai("div",aa,O(i.help.show_hide_wifi_module),1),ca,ua]),ai("div",da,[fa,ai("div",pa,O(i.help.show_hide_processes),1),ha,ga]),ai("div",ma,[ba,ai("div",va,O(i.help.show_hide_left_sidebar),1),ya,wa]),ai("div",_a,[xa,ai("div",ka,O(i.help.show_hide_quick_look),1),Ca,Sa]),ai("div",Ta,[Oa,ai("div",Aa,O(i.help.show_hide_cpu_mem_swap),1),Ea,Pa]),ai("div",La,[ja,ai("div",Ma,O(i.help.show_hide_all),1),Da,Ia])])]),Ra,Na])):hi("v-if",!0)}]]),Ba={class:"plugin"},za={id:"alerts"},$a={key:0,class:"title"},Ha={key:1,class:"title"},Va={id:"alert"},Ga={class:"table"},Wa={class:"table-cell text-left"};var Za=n(6486);const Ka={props:{data:{type:Object}},computed:{stats(){return this.data.stats.alert},alerts(){return(this.stats||[]).map((t=>{const e={};if(e.name=t[3],e.level=t[2],e.begin=1e3*t[0],e.end=1e3*t[1],e.ongoing=-1==t[1],e.min=t[6],e.mean=t[5],e.max=t[4],!e.ongoing){const t=e.end-e.begin,n=parseInt(t/1e3%60),r=parseInt(t/6e4%60),i=parseInt(t/36e5%24);e.duration=(0,Za.padStart)(i,2,"0")+":"+(0,Za.padStart)(r,2,"0")+":"+(0,Za.padStart)(n,2,"0")}return e}))},hasAlerts(){return this.countAlerts>0},countAlerts(){return this.alerts.length},hasOngoingAlerts(){return this.countOngoingAlerts>0},countOngoingAlerts(){return this.alerts.filter((({ongoing:t})=>t)).length}},watch:{countOngoingAlerts(){this.countOngoingAlerts?Ao.badge(this.countOngoingAlerts):Ao.reset()}},methods:{formatDate:t=>new Date(t).toISOString().slice(0,19).replace(/[^\d-:]/," ")}},Xa=(0,Ua.Z)(Ka,[["render",function(t,e,n,r,i,s){return Xr(),ei("div",Ba,[ai("section",za,[s.hasAlerts?(Xr(),ei("span",$a," Warning or critical alerts (last "+O(s.countAlerts)+" entries) ",1)):(Xr(),ei("span",Ha,"No warning or critical alert detected"))]),ai("section",Va,[ai("div",Ga,[(Xr(!0),ei(Hr,null,ar(s.alerts,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Wa,[fi(O(s.formatDate(e.begin))+" ("+O(e.ongoing?"ongoing":e.duration)+") - ",1),er(ai("span",null,O(e.level)+" on ",513),[[ms,!e.ongoing]]),ai("span",{class:T(e.level.toLowerCase())},O(e.name),3),fi(" ("+O(t.$filters.number(e.max,1))+") ",1)])])))),128))])])])}]]),Ja={key:0,id:"cloud",class:"plugin"},Ya={class:"title"};const Qa={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cloud},provider(){return void 0!==this.stats["ami-id"]?"AWS EC2":null},instance(){const{stats:t}=this;return void 0!==this.stats["ami-id"]?`${t["instance-type"]} instance ${t["instance-id"]} (${t.reggion})`:null}}},tc=(0,Ua.Z)(Qa,[["render",function(t,e,n,r,i,s){return s.instance||s.provider?(Xr(),ei("section",Ja,[ai("span",Ya,O(s.provider),1),fi(" "+O(s.instance),1)])):hi("v-if",!0)}]]),ec={class:"plugin",id:"connections"},nc=ai("div",{class:"table-row"},[ai("div",{class:"table-cell text-left title"},"TCP CONNECTIONS"),ai("div",{class:"table-cell"})],-1),rc={class:"table-row"},ic=ai("div",{class:"table-cell text-left"},"Listen",-1),sc=ai("div",{class:"table-cell"},null,-1),oc={class:"table-cell"},lc={class:"table-row"},ac=ai("div",{class:"table-cell text-left"},"Initiated",-1),cc=ai("div",{class:"table-cell"},null,-1),uc={class:"table-cell"},dc={class:"table-row"},fc=ai("div",{class:"table-cell text-left"},"Established",-1),pc=ai("div",{class:"table-cell"},null,-1),hc={class:"table-cell"},gc={class:"table-row"},mc=ai("div",{class:"table-cell text-left"},"Terminated",-1),bc=ai("div",{class:"table-cell"},null,-1),vc={class:"table-cell"},yc={class:"table-row"},wc=ai("div",{class:"table-cell text-left"},"Tracked",-1),_c=ai("div",{class:"table-cell"},null,-1);const xc={props:{data:{type:Object}},computed:{stats(){return this.data.stats.connections},view(){return this.data.views.connections},listen(){return this.stats.LISTEN},initiated(){return this.stats.initiated},established(){return this.stats.ESTABLISHED},terminated(){return this.stats.terminated},tracked(){return{count:this.stats.nf_conntrack_count,max:this.stats.nf_conntrack_max}}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},kc=(0,Ua.Z)(xc,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",ec,[nc,ai("div",rc,[ic,sc,ai("div",oc,O(s.listen),1)]),ai("div",lc,[ac,cc,ai("div",uc,O(s.initiated),1)]),ai("div",dc,[fc,pc,ai("div",hc,O(s.established),1)]),ai("div",gc,[mc,bc,ai("div",vc,O(s.terminated),1)]),ai("div",yc,[wc,_c,ai("div",{class:T(["table-cell",s.getDecoration("nf_conntrack_percent")])},O(s.tracked.count)+"/"+O(s.tracked.max),3)])])}]]),Cc={id:"cpu",class:"plugin"},Sc={class:"row"},Tc={class:"col-sm-24 col-md-12 col-lg-8"},Oc={class:"table"},Ac={class:"table-row"},Ec=ai("div",{class:"table-cell text-left title"},"CPU",-1),Pc={class:"table-cell"},Lc={class:"table-row"},jc=ai("div",{class:"table-cell text-left"},"user:",-1),Mc={class:"table-row"},Dc=ai("div",{class:"table-cell text-left"},"system:",-1),Ic={class:"table-row"},Rc=ai("div",{class:"table-cell text-left"},"iowait:",-1),Nc={class:"table-row"},qc=ai("div",{class:"table-cell text-left"},"dpc:",-1),Uc={class:"hidden-xs hidden-sm col-md-12 col-lg-8"},Fc={class:"table"},Bc={class:"table-row"},zc=ai("div",{class:"table-cell text-left"},"idle:",-1),$c={class:"table-cell"},Hc={class:"table-row"},Vc=ai("div",{class:"table-cell text-left"},"irq:",-1),Gc={class:"table-cell"},Wc={class:"table-row"},Zc=ai("div",{class:"table-cell text-left"},"inter:",-1),Kc={class:"table-cell"},Xc={class:"table-row"},Jc=ai("div",{class:"table-cell text-left"},"nice:",-1),Yc={class:"table-cell"},Qc={key:0,class:"table-row"},tu=ai("div",{class:"table-cell text-left"},"ctx_sw:",-1),eu={class:"table-row"},nu=ai("div",{class:"table-cell text-left"},"steal:",-1),ru={key:1,class:"table-row"},iu=ai("div",{class:"table-cell text-left"},"syscal:",-1),su={class:"table-cell"},ou={class:"hidden-xs hidden-sm hidden-md col-lg-8"},lu={class:"table"},au={key:0,class:"table-row"},cu=ai("div",{class:"table-cell text-left"},"ctx_sw:",-1),uu={key:1,class:"table-row"},du=ai("div",{class:"table-cell text-left"},"inter:",-1),fu={class:"table-cell"},pu={key:2,class:"table-row"},hu=ai("div",{class:"table-cell text-left"},"sw_int:",-1),gu={class:"table-cell"};const mu={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cpu},view(){return this.data.views.cpu},isLinux(){return this.data.isLinux},isSunOS(){return this.data.isSunOS},isWindows(){return this.data.isWindows},total(){return this.stats.total},user(){return this.stats.user},system(){return this.stats.system},idle(){return this.stats.idle},nice(){return this.stats.nice},irq(){return this.stats.irq},iowait(){return this.stats.iowait},dpc(){return this.stats.dpc},steal(){return this.stats.steal},ctx_switches(){const{stats:t}=this;return t.ctx_switches?Math.floor(t.ctx_switches/t.time_since_update):null},interrupts(){const{stats:t}=this;return t.interrupts?Math.floor(t.interrupts/t.time_since_update):null},soft_interrupts(){const{stats:t}=this;return t.soft_interrupts?Math.floor(t.soft_interrupts/t.time_since_update):null},syscalls(){const{stats:t}=this;return t.syscalls?Math.floor(t.syscalls/t.time_since_update):null}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},bu=(0,Ua.Z)(mu,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Cc,[ai("div",Sc,[ai("div",Tc,[ai("div",Oc,[ai("div",Ac,[Ec,ai("div",Pc,O(s.total)+"%",1)]),ai("div",Lc,[jc,ai("div",{class:T(["table-cell",s.getDecoration("user")])},O(s.user)+"%",3)]),ai("div",Mc,[Dc,ai("div",{class:T(["table-cell",s.getDecoration("system")])},O(s.system)+"%",3)]),er(ai("div",Ic,[Rc,ai("div",{class:T(["table-cell",s.getDecoration("iowait")])},O(s.iowait)+"%",3)],512),[[ms,null!=s.iowait]]),er(ai("div",Nc,[qc,ai("div",{class:T(["table-cell",s.getDecoration("dpc")])},O(s.dpc)+"%",3)],512),[[ms,null==s.iowait&&null!=s.dpc]])])]),ai("div",Uc,[ai("div",Fc,[ai("div",Bc,[zc,ai("div",$c,O(s.idle)+"%",1)]),er(ai("div",Hc,[Vc,ai("div",Gc,O(s.irq)+"%",1)],512),[[ms,null!=s.irq]]),hi(" If no irq, display interrupts "),er(ai("div",Wc,[Zc,ai("div",Kc,O(s.interrupts),1)],512),[[ms,null==s.irq]]),er(ai("div",Xc,[Jc,ai("div",Yc,O(s.nice)+"%",1)],512),[[ms,null!=s.nice]]),hi(" If no nice, display ctx_switches "),null==s.nice&&s.ctx_switches?(Xr(),ei("div",Qc,[tu,ai("div",{class:T(["table-cell",s.getDecoration("ctx_switches")])},O(s.ctx_switches),3)])):hi("v-if",!0),er(ai("div",eu,[nu,ai("div",{class:T(["table-cell",s.getDecoration("steal")])},O(s.steal)+"%",3)],512),[[ms,null!=s.steal]]),!s.isLinux&&s.syscalls?(Xr(),ei("div",ru,[iu,ai("div",su,O(s.syscalls),1)])):hi("v-if",!0)])]),ai("div",ou,[ai("div",lu,[hi(" If not already display instead of nice, then display ctx_switches "),null!=s.nice&&s.ctx_switches?(Xr(),ei("div",au,[cu,ai("div",{class:T(["table-cell",s.getDecoration("ctx_switches")])},O(s.ctx_switches),3)])):hi("v-if",!0),hi(" If not already display instead of irq, then display interrupts "),null!=s.irq&&s.interrupts?(Xr(),ei("div",uu,[du,ai("div",fu,O(s.interrupts),1)])):hi("v-if",!0),s.isWindows||s.isSunOS||!s.soft_interrupts?hi("v-if",!0):(Xr(),ei("div",pu,[hu,ai("div",gu,O(s.soft_interrupts),1)]))])])])])}]]),vu={class:"plugin",id:"diskio"},yu={key:0,class:"table-row"},wu=ai("div",{class:"table-cell text-left title"},"DISK I/O",-1),_u={class:"table-cell"},xu={class:"table-cell"},ku={class:"table-cell"},Cu={class:"table-cell"},Su={class:"table-cell text-left"};var Tu=n(1036),Ou=n.n(Tu);function Au(t,e){return Eu(t=8*Math.round(t),e)+"b"}function Eu(t,e){if(e=e||!1,isNaN(parseFloat(t))||!isFinite(t)||0==t)return t;const n=["Y","Z","E","P","T","G","M","K"],r={Y:12089258196146292e8,Z:11805916207174113e5,E:0x1000000000000000,P:0x4000000000000,T:1099511627776,G:1073741824,M:1048576,K:1024};for(var i=0;i1){var l=0;return o<10?l=2:o<100&&(l=1),e?l="MK"==s?0:(0,Za.min)([1,l]):"K"==s&&(l=0),parseFloat(o).toFixed(l)+s}}return t.toFixed(0)}function Pu(t){return void 0===t||""===t?"?":t}function Lu(t,e,n){return e=e||0,n=n||" ",String(t).padStart(e,n)}function ju(t,e){return"function"!=typeof t.slice&&(t=String(t)),t.slice(0,e)}function Mu(t,e){return e=e||8,t.length>e?"_"+t.substring(t.length-e+1):t}function Du(t){if(void 0===t)return t;var e=function(t){var e=document.createElement("div");return e.innerText=t,e.innerHTML}(t),n=e.replace(/\n/g,"
");return Ou()(n)}function Iu(t,e){return new Intl.NumberFormat(void 0,"number"==typeof e?{maximumFractionDigits:e}:e).format(t)}function Ru(t){for(var e=0,n=0;n({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.diskio},disks(){const t=this.stats.map((t=>{const e=t.time_since_update;return{name:t.disk_name,bitrate:{txps:Eu(t.read_bytes/e),rxps:Eu(t.write_bytes/e)},count:{txps:Eu(t.read_count/e),rxps:Eu(t.write_count/e)},alias:void 0!==t.alias?t.alias:null}}));return(0,Za.orderBy)(t,["name"])}}},Uu=(0,Ua.Z)(qu,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",vu,[s.disks.length>0?(Xr(),ei("div",yu,[wu,er(ai("div",_u,"R/s",512),[[ms,!s.args.diskio_iops]]),er(ai("div",xu,"W/s",512),[[ms,!s.args.diskio_iops]]),er(ai("div",ku,"IOR/s",512),[[ms,s.args.diskio_iops]]),er(ai("div",Cu,"IOW/s",512),[[ms,s.args.diskio_iops]])])):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.disks,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Su,O(t.$filters.minSize(e.alias?e.alias:e.name,32)),1),er(ai("div",{class:"table-cell"},O(e.bitrate.txps),513),[[ms,!s.args.diskio_iops]]),er(ai("div",{class:"table-cell"},O(e.bitrate.rxps),513),[[ms,!s.args.diskio_iops]]),er(ai("div",{class:"table-cell"},O(e.count.txps),513),[[ms,s.args.diskio_iops]]),er(ai("div",{class:"table-cell"},O(e.count.rxps),513),[[ms,s.args.diskio_iops]])])))),128))])}]]),Fu={key:0,id:"containers-plugin",class:"plugin"},Bu=ai("span",{class:"title"},"CONTAINERS",-1),zu={class:"table"},$u={class:"table-row"},Hu=ai("div",{class:"table-cell"},"Status",-1),Vu=ai("div",{class:"table-cell"},"Uptime",-1),Gu=pi('
/MAX
IOR/s
IOW/s
RX/s
TX/s
Command
',6),Wu={class:"table-cell text-left"},Zu={class:"table-cell"},Ku={class:"table-cell"},Xu={class:"table-cell"},Ju={class:"table-cell"},Yu={class:"table-cell"},Qu={class:"table-cell"},td={class:"table-cell"},ed={class:"table-cell text-left"};const nd={props:{data:{type:Object}},data:()=>({store:ko,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.docker},containers(){const{sorter:t}=this,e=(this.stats.containers||[]).map((t=>({id:t.Id,name:t.name,status:t.Status,uptime:t.Uptime,cpu_percent:t.cpu.total,memory_usage:null!=t.memory.usage?t.memory.usage:"?",limit:null!=t.memory.limit?t.memory.limit:"?",ior:null!=t.io.ior?t.io.ior:"?",iow:null!=t.io.iow?t.io.iow:"?",io_time_since_update:t.io.time_since_update,rx:null!=t.network.rx?t.network.rx:"?",tx:null!=t.network.tx?t.network.tx:"?",net_time_since_update:t.network.time_since_update,command:t.Command.join(" "),image:t.Image})));return(0,Za.orderBy)(e,[t.column].reduce(((t,e)=>("memory_percent"===e&&(e=["memory_usage"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"])}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["cpu_percent","memory_percent","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["name"].includes(t)},getColumnLabel:function(t){return{io_counters:"disk IO",cpu_percent:"CPU consumption",memory_usage:"memory consumption",cpu_times:"uptime",name:"container name",None:"None"}[t]||t}})}}}},rd=(0,Ua.Z)(nd,[["render",function(t,e,n,r,i,s){return s.containers.length?(Xr(),ei("section",Fu,[Bu,fi(" "+O(s.containers.length)+" sorted by "+O(i.sorter.getColumnLabel(i.sorter.column))+" ",1),ai("div",zu,[ai("div",$u,[ai("div",{class:T(["table-cell text-left",["sortable","name"===i.sorter.column&&"sort"]]),onClick:e[0]||(e[0]=t=>s.args.sort_processes_key="name")}," Name ",2),Hu,Vu,ai("div",{class:T(["table-cell",["sortable","cpu_percent"===i.sorter.column&&"sort"]]),onClick:e[1]||(e[1]=t=>s.args.sort_processes_key="cpu_percent")}," CPU% ",2),ai("div",{class:T(["table-cell",["sortable","memory_percent"===i.sorter.column&&"sort"]]),onClick:e[2]||(e[2]=t=>s.args.sort_processes_key="memory_percent")}," MEM ",2),Gu]),(Xr(!0),ei(Hr,null,ar(s.containers,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Wu,O(e.name),1),ai("div",{class:T(["table-cell","Paused"==e.status?"careful":"ok"])},O(e.status),3),ai("div",{class:T(["table-cell","Paused"==e.status?"careful":"ok"])},O(e.uptime),3),ai("div",Zu,O(t.$filters.number(e.cpu_percent,1)),1),ai("div",Ku,O(t.$filters.bytes(e.memory_usage)),1),ai("div",Xu,O(t.$filters.bytes(e.limit)),1),ai("div",Ju,O(t.$filters.bits(e.ior/e.io_time_since_update)),1),ai("div",Yu,O(t.$filters.bits(e.iow/e.io_time_since_update)),1),ai("div",Qu,O(t.$filters.bits(e.rx/e.net_time_since_update)),1),ai("div",td,O(t.$filters.bits(e.tx/e.net_time_since_update)),1),ai("div",ed,O(e.command),1)])))),128))])])):hi("v-if",!0)}]]),id={class:"plugin",id:"folders"},sd={key:0,class:"table-row"},od=[ai("div",{class:"table-cell text-left title"},"FOLDERS",-1),ai("div",{class:"table-cell"},null,-1),ai("div",{class:"table-cell"},"Size",-1)],ld={class:"table-cell text-left"},ad=ai("div",{class:"table-cell"},null,-1);const cd={props:{data:{type:Object}},computed:{stats(){return this.data.stats.folders},folders(){return this.stats.map((t=>({path:t.path,size:t.size,careful:t.careful,warning:t.warning,critical:t.critical})))}},methods:{getDecoration(t){if(Number.isInteger(t.size))return null!==t.critical&&t.size>1e6*t.critical?"critical":null!==t.warning&&t.size>1e6*t.warning?"warning":null!==t.careful&&t.size>1e6*t.careful?"careful":"ok"}}},ud=(0,Ua.Z)(cd,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",id,[s.folders.length>0?(Xr(),ei("div",sd,od)):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.folders,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",ld,O(e.path),1),ad,ai("div",{class:T(["table-cell",s.getDecoration(e)])},O(t.$filters.bytes(e.size)),3)])))),128))])}]]),dd={class:"plugin",id:"fs"},fd={class:"table-row"},pd=ai("div",{class:"table-cell text-left title"},"FILE SYS",-1),hd={class:"table-cell"},gd=ai("div",{class:"table-cell"},"Total",-1),md={class:"table-cell text-left"},bd={key:0,class:"visible-lg-inline"},vd={class:"table-cell"};const yd={props:{data:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.fs},view(){return this.data.views.fs},fileSystems(){const t=this.stats.map((t=>{let e=t.mnt_point;return e.length>22&&(e="_"+t.mnt_point.slice(-21)),{name:t.device_name,mountPoint:t.mnt_point,shortMountPoint:e,percent:t.percent,size:t.size,used:t.used,free:t.free}}));return(0,Za.orderBy)(t,["mnt_point"])}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},wd=(0,Ua.Z)(yd,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",dd,[ai("div",fd,[pd,ai("div",hd,[er(ai("span",null,"Used",512),[[ms,!s.args.fs_free_space]]),er(ai("span",null,"Free",512),[[ms,s.args.fs_free_space]])]),gd]),(Xr(!0),ei(Hr,null,ar(s.fileSystems,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",md,[fi(O(e.shortMountPoint)+" ",1),e.shortMountPoint.length<=12?(Xr(),ei("span",bd," ("+O(e.name)+") ",1)):hi("v-if",!0)]),ai("div",{class:T(["table-cell",s.getDecoration(e.mountPoint,"used")])},[er(ai("span",null,O(t.$filters.bytes(e.used)),513),[[ms,!s.args.fs_free_space]]),er(ai("span",null,O(t.$filters.bytes(e.free)),513),[[ms,s.args.fs_free_space]])],2),ai("div",vd,O(t.$filters.bytes(e.size)),1)])))),128))])}]]),_d={id:"gpu",class:"plugin"},xd={class:"gpu-name title"},kd={class:"table"},Cd={key:0,class:"table-row"},Sd=ai("div",{class:"table-cell text-left"},"proc:",-1),Td={key:1,class:"table-cell"},Od={key:1,class:"table-row"},Ad=ai("div",{class:"table-cell text-left"},"mem:",-1),Ed={key:1,class:"table-cell"},Pd={key:2,class:"table-row"},Ld=ai("div",{class:"table-cell text-left"},"temperature::",-1),jd={key:1,class:"table-cell"},Md={class:"table-cell text-left"},Dd={key:1},Id={key:3},Rd={key:5};const Nd={props:{data:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.gpu},view(){return this.data.views.gpu},gpus(){return this.stats},name(){let t="GPU";const{stats:e}=this;return 1===e.length?t=e[0].name:e.length&&(t=`${e.length} GPU ${e[0].name}`),t},mean(){const t={proc:null,mem:null,temperature:null},{stats:e}=this;if(!e.length)return t;for(let n of e)t.proc+=n.proc,t.mem+=n.mem,t.temperature+=n.temperature;return t.proc=t.proc/e.length,t.mem=t.mem/e.length,t.temperature=t.temperature/e.length,t}},methods:{getDecoration(t,e){if(void 0!==this.view[t][e])return this.view[t][e].decoration.toLowerCase()},getMeanDecoration(t){return this.getDecoration(0,t)}}},qd=(0,Ua.Z)(Nd,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",_d,[ai("div",xd,O(s.name),1),ai("div",kd,[s.args.meangpu||1===s.gpus.length?(Xr(),ei("div",Cd,[Sd,null!=s.mean.proc?(Xr(),ei("div",{key:0,class:T(["table-cell",s.getMeanDecoration("proc")])},O(t.$filters.number(s.mean.proc,0))+"% ",3)):hi("v-if",!0),null==s.mean.proc?(Xr(),ei("div",Td,"N/A")):hi("v-if",!0)])):hi("v-if",!0),s.args.meangpu||1===s.gpus.length?(Xr(),ei("div",Od,[Ad,null!=s.mean.mem?(Xr(),ei("div",{key:0,class:T(["table-cell",s.getMeanDecoration("mem")])},O(t.$filters.number(s.mean.mem,0))+"% ",3)):hi("v-if",!0),null==s.mean.mem?(Xr(),ei("div",Ed,"N/A")):hi("v-if",!0)])):hi("v-if",!0),s.args.meangpu||1===s.gpus.length?(Xr(),ei("div",Pd,[Ld,null!=s.mean.temperature?(Xr(),ei("div",{key:0,class:T(["table-cell",s.getMeanDecoration("temperature")])},O(t.$filters.number(s.mean.temperature,0))+"° ",3)):hi("v-if",!0),null==s.mean.temperature?(Xr(),ei("div",jd,"N/A")):hi("v-if",!0)])):hi("v-if",!0),!s.args.meangpu&&s.gpus.length>1?(Xr(!0),ei(Hr,{key:3},ar(s.gpus,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Md,[fi(O(e.gpu_id)+": ",1),null!=e.proc?(Xr(),ei("span",{key:0,class:T(s.getDecoration(e.gpu_id,"proc"))},O(t.$filters.number(e.proc,0))+"% ",3)):hi("v-if",!0),null==e.proc?(Xr(),ei("span",Dd,"N/A")):hi("v-if",!0),fi(" mem: "),null!=e.mem?(Xr(),ei("span",{key:2,class:T(s.getDecoration(e.gpu_id,"mem"))},O(t.$filters.number(e.mem,0))+"% ",3)):hi("v-if",!0),null==e.mem?(Xr(),ei("span",Id,"N/A")):hi("v-if",!0),fi(" temp: "),null!=e.temperature?(Xr(),ei("span",{key:4,class:T(s.getDecoration(e.gpu_id,"temperature"))},O(t.$filters.number(e.temperature,0))+"C ",3)):hi("v-if",!0),null==e.temperature?(Xr(),ei("span",Rd,"N/A")):hi("v-if",!0)])])))),128)):hi("v-if",!0)])])}]]),Ud={key:0,class:"plugin",id:"ip"},Fd={key:0,class:"title"},Bd={key:1},zd={key:2,class:"title"},$d={key:3},Hd={key:4};const Vd={props:{data:{type:Object}},computed:{ipStats(){return this.data.stats.ip},address(){return this.ipStats.address},gateway(){return this.ipStats.gateway},maskCdir(){return this.ipStats.mask_cidr},publicAddress(){return this.ipStats.public_address},publicInfo(){return this.ipStats.public_info_human}}},Gd=(0,Ua.Z)(Vd,[["render",function(t,e,n,r,i,s){return null!=s.address?(Xr(),ei("section",Ud,[null!=s.address?(Xr(),ei("span",Fd,"IP")):hi("v-if",!0),null!=s.address?(Xr(),ei("span",Bd,O(s.address)+"/"+O(s.maskCdir),1)):hi("v-if",!0),null!=s.publicAddress?(Xr(),ei("span",zd,"Pub")):hi("v-if",!0),null!=s.publicAddress?(Xr(),ei("span",$d,O(s.publicAddress),1)):hi("v-if",!0),null!=s.publicInfo?(Xr(),ei("span",Hd,"("+O(s.publicInfo)+")",1)):hi("v-if",!0)])):hi("v-if",!0)}]]),Wd={class:"plugin",id:"irq"},Zd={key:0,class:"table-row"},Kd=[ai("div",{class:"table-cell text-left title"},"IRQ",-1),ai("div",{class:"table-cell"},null,-1),ai("div",{class:"table-cell"},"Rate/s",-1)],Xd={class:"table-cell text-left"},Jd=ai("div",{class:"table-cell"},null,-1),Yd={class:"table-cell"};const Qd={props:{data:{type:Object}},computed:{stats(){return this.data.stats.irq},irqs(){return this.stats.map((t=>({irq_line:t.irq_line,irq_rate:t.irq_rate})))}}},tf=(0,Ua.Z)(Qd,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Wd,[s.irqs.length>0?(Xr(),ei("div",Zd,Kd)):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.irqs,((t,e)=>(Xr(),ei("div",{class:"table-row",key:e},[ai("div",Xd,O(t.irq_line),1),Jd,ai("div",Yd,[ai("span",null,O(t.irq_rate),1)])])))),128))])}]]),ef={key:0,id:"load",class:"plugin"},nf={class:"table"},rf={class:"table-row"},sf=ai("div",{class:"table-cell text-left title"},"LOAD",-1),of={class:"table-cell"},lf={class:"table-row"},af=ai("div",{class:"table-cell text-left"},"1 min:",-1),cf={class:"table-cell"},uf={class:"table-row"},df=ai("div",{class:"table-cell text-left"},"5 min:",-1),ff={class:"table-row"},pf=ai("div",{class:"table-cell text-left"},"15 min:",-1);const hf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.load},view(){return this.data.views.load},cpucore(){return this.stats.cpucore},min1(){return this.stats.min1},min5(){return this.stats.min5},min15(){return this.stats.min15}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},gf=(0,Ua.Z)(hf,[["render",function(t,e,n,r,i,s){return null!=s.cpucore?(Xr(),ei("section",ef,[ai("div",nf,[ai("div",rf,[sf,ai("div",of,O(s.cpucore)+"-core",1)]),ai("div",lf,[af,ai("div",cf,O(t.$filters.number(s.min1,2)),1)]),ai("div",uf,[df,ai("div",{class:T(["table-cell",s.getDecoration("min5")])},O(t.$filters.number(s.min5,2)),3)]),ai("div",ff,[pf,ai("div",{class:T(["table-cell",s.getDecoration("min15")])},O(t.$filters.number(s.min15,2)),3)])])])):hi("v-if",!0)}]]),mf={id:"mem",class:"plugin"},bf={class:"table"},vf={class:"table-row"},yf=ai("div",{class:"table-cell text-left title"},"MEM",-1),wf={class:"table-cell"},_f={class:"table-row"},xf=ai("div",{class:"table-cell text-left"},"total:",-1),kf={class:"table-cell"},Cf={class:"table-row"},Sf=ai("div",{class:"table-cell text-left"},"used:",-1),Tf={class:"table-row"},Of=ai("div",{class:"table-cell text-left"},"free:",-1),Af={class:"table-cell"};const Ef={props:{data:{type:Object}},computed:{stats(){return this.data.stats.mem},view(){return this.data.views.mem},percent(){return this.stats.percent},total(){return this.stats.total},used(){return this.stats.used},free(){return this.stats.free}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},Pf=(0,Ua.Z)(Ef,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",mf,[ai("div",bf,[ai("div",vf,[yf,ai("div",wf,O(s.percent)+"%",1)]),ai("div",_f,[xf,ai("div",kf,O(t.$filters.bytes(s.total)),1)]),ai("div",Cf,[Sf,ai("div",{class:T(["table-cell",s.getDecoration("used")])},O(t.$filters.bytes(s.used,2)),3)]),ai("div",Tf,[Of,ai("div",Af,O(t.$filters.bytes(s.free)),1)])])])}]]),Lf={id:"mem-more",class:"plugin"},jf={class:"table"},Mf={class:"table-row"},Df=ai("div",{class:"table-cell text-left"},"active:",-1),If={class:"table-cell"},Rf={class:"table-row"},Nf=ai("div",{class:"table-cell text-left"},"inactive:",-1),qf={class:"table-cell"},Uf={class:"table-row"},Ff=ai("div",{class:"table-cell text-left"},"buffers:",-1),Bf={class:"table-cell"},zf={class:"table-row"},$f=ai("div",{class:"table-cell text-left"},"cached:",-1),Hf={class:"table-cell"};const Vf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.mem},active(){return this.stats.active},inactive(){return this.stats.inactive},buffers(){return this.stats.buffers},cached(){return this.stats.cached}}},Gf=(0,Ua.Z)(Vf,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Lf,[ai("div",jf,[er(ai("div",Mf,[Df,ai("div",If,O(t.$filters.bytes(s.active)),1)],512),[[ms,null!=s.active]]),er(ai("div",Rf,[Nf,ai("div",qf,O(t.$filters.bytes(s.inactive)),1)],512),[[ms,null!=s.inactive]]),er(ai("div",Uf,[Ff,ai("div",Bf,O(t.$filters.bytes(s.buffers)),1)],512),[[ms,null!=s.buffers]]),er(ai("div",zf,[$f,ai("div",Hf,O(t.$filters.bytes(s.cached)),1)],512),[[ms,null!=s.cached]])])])}]]),Wf={id:"memswap",class:"plugin"},Zf={class:"table"},Kf={class:"table-row"},Xf=ai("div",{class:"table-cell text-left title"},"SWAP",-1),Jf={class:"table-cell"},Yf={class:"table-row"},Qf=ai("div",{class:"table-cell text-left"},"total:",-1),tp={class:"table-cell"},ep={class:"table-row"},np=ai("div",{class:"table-cell text-left"},"used:",-1),rp={class:"table-row"},ip=ai("div",{class:"table-cell text-left"},"free:",-1),sp={class:"table-cell"};const op={props:{data:{type:Object}},computed:{stats(){return this.data.stats.memswap},view(){return this.data.views.memswap},percent(){return this.stats.percent},total(){return this.stats.total},used(){return this.stats.used},free(){return this.stats.free}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},lp=(0,Ua.Z)(op,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Wf,[ai("div",Zf,[ai("div",Kf,[Xf,ai("div",Jf,O(s.percent)+"%",1)]),ai("div",Yf,[Qf,ai("div",tp,O(t.$filters.bytes(s.total)),1)]),ai("div",ep,[np,ai("div",{class:T(["table-cell",s.getDecoration("used")])},O(t.$filters.bytes(s.used)),3)]),ai("div",rp,[ip,ai("div",sp,O(t.$filters.bytes(s.free)),1)])])])}]]),ap={class:"plugin",id:"network"},cp={class:"table-row"},up=ai("div",{class:"table-cell text-left title"},"NETWORK",-1),dp={class:"table-cell"},fp={class:"table-cell"},pp={class:"table-cell"},hp={class:"table-cell"},gp={class:"table-cell"},mp={class:"table-cell"},bp={class:"table-cell"},vp={class:"table-cell"},yp={class:"table-cell text-left"},wp={class:"visible-lg-inline"},_p={class:"hidden-lg"},xp={class:"table-cell"},kp={class:"table-cell"};const Cp={props:{data:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.network},networks(){const t=this.stats.map((t=>{const e=void 0!==t.alias?t.alias:null;return{interfaceName:t.interface_name,ifname:e||t.interface_name,rx:t.rx,tx:t.tx,cx:t.cx,time_since_update:t.time_since_update,cumulativeRx:t.cumulative_rx,cumulativeTx:t.cumulative_tx,cumulativeCx:t.cumulative_cx}}));return(0,Za.orderBy)(t,["interfaceName"])}}},Sp=(0,Ua.Z)(Cp,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",ap,[ai("div",cp,[up,er(ai("div",dp,"Rx/s",512),[[ms,!s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",fp,"Tx/s",512),[[ms,!s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",pp,null,512),[[ms,!s.args.network_cumul&&s.args.network_sum]]),er(ai("div",hp,"Rx+Tx/s",512),[[ms,!s.args.network_cumul&&s.args.network_sum]]),er(ai("div",gp,"Rx",512),[[ms,s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",mp,"Tx",512),[[ms,s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",bp,null,512),[[ms,s.args.network_cumul&&s.args.network_sum]]),er(ai("div",vp,"Rx+Tx",512),[[ms,s.args.network_cumul&&s.args.network_sum]])]),(Xr(!0),ei(Hr,null,ar(s.networks,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",yp,[ai("span",wp,O(e.ifname),1),ai("span",_p,O(t.$filters.minSize(e.ifname)),1)]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.rx/e.time_since_update):t.$filters.bits(e.rx/e.time_since_update)),513),[[ms,!s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.tx/e.time_since_update):t.$filters.bits(e.tx/e.time_since_update)),513),[[ms,!s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",xp,null,512),[[ms,!s.args.network_cumul&&s.args.network_sum]]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.cx/e.time_since_update):t.$filters.bits(e.cx/e.time_since_update)),513),[[ms,!s.args.network_cumul&&s.args.network_sum]]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.cumulativeRx):t.$filters.bits(e.cumulativeRx)),513),[[ms,s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.cumulativeTx):t.$filters.bits(e.cumulativeTx)),513),[[ms,s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",kp,null,512),[[ms,s.args.network_cumul&&s.args.network_sum]]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.cumulativeCx):t.$filters.bits(e.cumulativeCx)),513),[[ms,s.args.network_cumul&&s.args.network_sum]])])))),128))])}]]),Tp={id:"now",class:"plugin"};const Op={props:{data:{type:Object}},computed:{value(){return this.data.stats.now}}},Ap=(0,Ua.Z)(Op,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Tp,[ai("span",null,O(s.value),1)])}]]),Ep={id:"percpu",class:"plugin"},Pp={class:"table-row"},Lp={class:"table-cell text-left title"},jp={key:0},Mp={class:"table-row"},Dp=ai("div",{class:"table-cell text-left"},"user:",-1),Ip={class:"table-row"},Rp=ai("div",{class:"table-cell text-left"},"system:",-1),Np={class:"table-row"},qp=ai("div",{class:"table-cell text-left"},"idle:",-1),Up={key:0,class:"table-row"},Fp=ai("div",{class:"table-cell text-left"},"iowait:",-1),Bp={key:1,class:"table-row"},zp=ai("div",{class:"table-cell text-left"},"steal:",-1);const $p={props:{data:{type:Object}},computed:{percpuStats(){return this.data.stats.percpu},cpusChunks(){const t=this.percpuStats.map((t=>({number:t.cpu_number,total:t.total,user:t.user,system:t.system,idle:t.idle,iowait:t.iowait,steal:t.steal})));return(0,Za.chunk)(t,4)}},methods:{getUserAlert:t=>To.getAlert("percpu","percpu_user_",t.user),getSystemAlert:t=>To.getAlert("percpu","percpu_system_",t.system)}},Hp=(0,Ua.Z)($p,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Ep,[(Xr(!0),ei(Hr,null,ar(s.cpusChunks,((t,e)=>(Xr(),ei("div",{class:"table",key:e},[ai("div",Pp,[ai("div",Lp,[0===e?(Xr(),ei("span",jp,"PER CPU")):hi("v-if",!0)]),(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:"table-cell",key:e},O(t.total)+"% ",1)))),128))]),ai("div",Mp,[Dp,(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:T(["table-cell",s.getUserAlert(t)]),key:e},O(t.user)+"% ",3)))),128))]),ai("div",Ip,[Rp,(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:T(["table-cell",s.getSystemAlert(t)]),key:e},O(t.system)+"% ",3)))),128))]),ai("div",Np,[qp,(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:"table-cell",key:e},O(t.idle)+"% ",1)))),128))]),t[0].iowait?(Xr(),ei("div",Up,[Fp,(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:T(["table-cell",s.getSystemAlert(t)]),key:e},O(t.iowait)+"% ",3)))),128))])):hi("v-if",!0),t[0].steal?(Xr(),ei("div",Bp,[zp,(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:T(["table-cell",s.getSystemAlert(t)]),key:e},O(t.steal)+"% ",3)))),128))])):hi("v-if",!0)])))),128))])}]]),Vp={class:"plugin",id:"ports"},Gp={class:"table-cell text-left"},Wp=ai("div",{class:"table-cell"},null,-1),Zp={key:0},Kp={key:1},Xp={key:2},Jp={key:3},Yp={key:0},Qp={key:1},th={key:2};const eh={props:{data:{type:Object}},computed:{stats(){return this.data.stats.ports},ports(){return this.stats}},methods:{getPortDecoration:t=>null===t.status?"careful":!1===t.status?"critical":null!==t.rtt_warning&&t.status>t.rtt_warning?"warning":"ok",getWebDecoration:t=>null===t.status?"careful":-1===[200,301,302].indexOf(t.status)?"critical":null!==t.rtt_warning&&t.elapsed>t.rtt_warning?"warning":"ok"}},nh=(0,Ua.Z)(eh,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Vp,[(Xr(!0),ei(Hr,null,ar(s.ports,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Gp,[hi(" prettier-ignore "),fi(O(t.$filters.minSize(e.description?e.description:e.host+" "+e.port,20)),1)]),Wp,e.host?(Xr(),ei("div",{key:0,class:T([s.getPortDecoration(e),"table-cell"])},["null"==e.status?(Xr(),ei("span",Zp,"Scanning")):"false"==e.status?(Xr(),ei("span",Kp,"Timeout")):"true"==e.status?(Xr(),ei("span",Xp,"Open")):(Xr(),ei("span",Jp,O(t.$filters.number(1e3*e.status,0))+"ms",1))],2)):hi("v-if",!0),e.url?(Xr(),ei("div",{key:1,class:T([s.getWebDecoration(e),"table-cell"])},["null"==e.status?(Xr(),ei("span",Yp,"Scanning")):"Error"==e.status?(Xr(),ei("span",Qp,"Error")):(Xr(),ei("span",th,"Code "+O(e.status),1))],2)):hi("v-if",!0)])))),128))])}]]),rh={key:0},ih={key:1},sh={key:0,class:"row"},oh={class:"col-lg-18"};const lh={id:"amps",class:"plugin"},ah={class:"table"},ch={key:0,class:"table-cell text-left"},uh=["innerHTML"];const dh={props:{data:{type:Object}},computed:{stats(){return this.data.stats.amps},processes(){return this.stats.filter((t=>null!==t.result))}},methods:{getNameDecoration(t){const e=t.count,n=t.countmin,r=t.countmax;let i="ok";return i=e>0?(null===n||e>=n)&&(null===r||e<=r)?"ok":"careful":null===n?"ok":"critical",i}}},fh=(0,Ua.Z)(dh,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",lh,[ai("div",ah,[(Xr(!0),ei(Hr,null,ar(s.processes,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",{class:T(["table-cell text-left",s.getNameDecoration(e)])},O(e.name),3),e.regex?(Xr(),ei("div",ch,O(e.count),1)):hi("v-if",!0),ai("div",{class:"table-cell text-left process-result",innerHTML:t.$filters.nl2br(e.result)},null,8,uh)])))),128))])])}]]),ph={id:"processcount",class:"plugin"},hh=ai("span",{class:"title"},"TASKS",-1),gh={class:"title"};const mh={props:{data:{type:Object},sorter:{type:Object}},computed:{stats(){return this.data.stats.processcount},total(){return this.stats.total||0},running(){return this.stats.running||0},sleeping(){return this.stats.sleeping||0},stopped(){return this.stats.stopped||0},thread(){return this.stats.thread||0}}},bh=(0,Ua.Z)(mh,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",ph,[hh,ai("span",null,O(s.total)+" ("+O(s.thread)+" thr),",1),ai("span",null,O(s.running)+" run,",1),ai("span",null,O(s.sleeping)+" slp,",1),ai("span",null,O(s.stopped)+" oth",1),ai("span",gh,O(n.sorter.auto?"sorted automatically":"sorted"),1),ai("span",null,"by "+O(n.sorter.getColumnLabel(n.sorter.column)),1)])}]]),vh={id:"processlist-plugin",class:"plugin"},yh={class:"table"},wh={class:"table-row"},_h=ai("div",{class:"table-cell hidden-xs hidden-sm"},"VIRT",-1),xh=ai("div",{class:"table-cell hidden-xs hidden-sm"},"RES",-1),kh=ai("div",{class:"table-cell"},"PID",-1),Ch=ai("div",{class:"table-cell"},"NI",-1),Sh=ai("div",{class:"table-cell"},"S",-1),Th={class:"table-cell hidden-xs hidden-sm"},Oh={class:"table-cell hidden-xs hidden-sm"},Ah={class:"table-cell"},Eh={class:"table-cell text-left"},Ph={key:0,class:"table-cell hidden-xs hidden-sm"},Lh={key:1,class:"table-cell hidden-xs hidden-sm"},jh={class:"table-cell text-left hidden-xs hidden-sm"};const Mh={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats(){return this.data.stats.processlist},processes(){const{sorter:t}=this,e=this.data.stats.isWindows,n=(this.stats||[]).map((t=>(t.memvirt="?",t.memres="?",t.memory_info&&(t.memvirt=t.memory_info[1],t.memres=t.memory_info[0]),t.timeplus="?",t.timemillis="?",t.cpu_times&&(t.timeplus=Nu(t.cpu_times),t.timemillis=Ru(t.cpu_times)),null===t.num_threads&&(t.num_threads=-1),null===t.cpu_percent&&(t.cpu_percent=-1),null===t.memory_percent&&(t.memory_percent=-1),t.io_read=null,t.io_write=null,t.io_counters&&(t.io_read=(t.io_counters[0]-t.io_counters[2])/t.time_since_update,t.io_write=(t.io_counters[1]-t.io_counters[3])/t.time_since_update),t.isNice=void 0!==t.nice&&(e&&32!=t.nice||!e&&0!=t.nice),Array.isArray(t.cmdline)&&(t.cmdline=t.cmdline.join(" ")),null===t.cmdline&&(t.cmdline=t.name),e&&null!==t.username&&(t.username=(0,Za.last)(t.username.split("\\"))),t)));return(0,Za.orderBy)(n,[t.column].reduce(((t,e)=>("io_counters"===e&&(e=["io_read","io_write"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"]).slice(0,this.limit)},ioReadWritePresent(){return(this.stats||[]).some((({io_counters:t})=>t))},limit(){return void 0!==this.config.outputs?this.config.outputs.max_processes_display:void 0}},methods:{getCpuPercentAlert:t=>To.getAlert("processlist","processlist_cpu_",t.cpu_percent),getMemoryPercentAlert:t=>To.getAlert("processlist","processlist_mem_",t.cpu_percent)}},Dh={components:{GlancesPluginAmps:fh,GlancesPluginProcesscount:bh,GlancesPluginProcesslist:(0,Ua.Z)(Mh,[["render",function(t,e,n,r,i,s){return Xr(),ei(Hr,null,[hi(" prettier-ignore "),ai("section",vh,[ai("div",yh,[ai("div",wh,[ai("div",{class:T(["table-cell",["sortable","cpu_percent"===n.sorter.column&&"sort"]]),onClick:e[0]||(e[0]=e=>t.$emit("update:sorter","cpu_percent"))}," CPU% ",2),ai("div",{class:T(["table-cell",["sortable","memory_percent"===n.sorter.column&&"sort"]]),onClick:e[1]||(e[1]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),_h,xh,kh,ai("div",{class:T(["table-cell text-left",["sortable","username"===n.sorter.column&&"sort"]]),onClick:e[2]||(e[2]=e=>t.$emit("update:sorter","username"))}," USER ",2),ai("div",{class:T(["table-cell hidden-xs hidden-sm",["sortable","timemillis"===n.sorter.column&&"sort"]]),onClick:e[3]||(e[3]=e=>t.$emit("update:sorter","timemillis"))}," TIME+ ",2),ai("div",{class:T(["table-cell text-left hidden-xs hidden-sm",["sortable","num_threads"===n.sorter.column&&"sort"]]),onClick:e[4]||(e[4]=e=>t.$emit("update:sorter","num_threads"))}," THR ",2),Ch,Sh,er(ai("div",{class:T(["table-cell hidden-xs hidden-sm",["sortable","io_counters"===n.sorter.column&&"sort"]]),onClick:e[5]||(e[5]=e=>t.$emit("update:sorter","io_counters"))}," IOR/s ",2),[[ms,s.ioReadWritePresent]]),er(ai("div",{class:T(["table-cell text-left hidden-xs hidden-sm",["sortable","io_counters"===n.sorter.column&&"sort"]]),onClick:e[6]||(e[6]=e=>t.$emit("update:sorter","io_counters"))}," IOW/s ",2),[[ms,s.ioReadWritePresent]]),ai("div",{class:T(["table-cell text-left",["sortable","name"===n.sorter.column&&"sort"]]),onClick:e[7]||(e[7]=e=>t.$emit("update:sorter","name"))}," Command ",2)]),(Xr(!0),ei(Hr,null,ar(s.processes,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",{class:T(["table-cell",s.getCpuPercentAlert(e)])},O(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent,1)),3),ai("div",{class:T(["table-cell",s.getMemoryPercentAlert(e)])},O(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),ai("div",Th,O(t.$filters.bytes(e.memvirt)),1),ai("div",Oh,O(t.$filters.bytes(e.memres)),1),ai("div",Ah,O(e.pid),1),ai("div",Eh,O(e.username),1),"?"!=e.timeplus?(Xr(),ei("div",Ph,[er(ai("span",{class:"highlight"},O(e.timeplus.hours)+"h",513),[[ms,e.timeplus.hours>0]]),fi(" "+O(t.$filters.leftPad(e.timeplus.minutes,2,"0"))+":"+O(t.$filters.leftPad(e.timeplus.seconds,2,"0"))+" ",1),er(ai("span",null,"."+O(t.$filters.leftPad(e.timeplus.milliseconds,2,"0")),513),[[ms,e.timeplus.hours<=0]])])):hi("v-if",!0),"?"==e.timeplus?(Xr(),ei("div",Lh,"?")):hi("v-if",!0),ai("div",jh,O(-1==e.num_threads?"?":e.num_threads),1),ai("div",{class:T(["table-cell",{nice:e.isNice}])},O(t.$filters.exclamation(e.nice)),3),ai("div",{class:T(["table-cell",{status:"R"==e.status}])},O(e.status),3),er(ai("div",{class:"table-cell hidden-xs hidden-sm"},O(t.$filters.bytes(e.io_read)),513),[[ms,s.ioReadWritePresent]]),er(ai("div",{class:"table-cell text-left hidden-xs hidden-sm"},O(t.$filters.bytes(e.io_write)),513),[[ms,s.ioReadWritePresent]]),er(ai("div",{class:"table-cell text-left"},O(e.name),513),[[ms,s.args.process_short_name]]),er(ai("div",{class:"table-cell text-left"},O(e.cmdline),513),[[ms,!s.args.process_short_name]])])))),128))])])],2112)}]])},props:{data:{type:Object}},data:()=>({store:ko,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["cpu_percent","memory_percent","username","timemillis","num_threads","io_counters","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["username","name"].includes(t)},getColumnLabel:function(t){return{io_counters:"disk IO",cpu_percent:"CPU consumption",memory_percent:"memory consumption",cpu_times:"process time",username:"user name",name:"process name",timemillis:"process time",None:"None"}[t]||t}})}}}},Ih=(0,Ua.Z)(Dh,[["render",function(t,e,n,r,i,s){const o=ir("glances-plugin-processcount"),l=ir("glances-plugin-amps"),a=ir("glances-plugin-processlist");return s.args.disable_process?(Xr(),ei("div",rh,"PROCESSES DISABLED (press 'z' to display)")):(Xr(),ei("div",ih,[ci(o,{sorter:i.sorter,data:n.data},null,8,["sorter","data"]),s.args.disable_amps?hi("v-if",!0):(Xr(),ei("div",sh,[ai("div",oh,[ci(l,{data:n.data},null,8,["data"])])])),ci(a,{sorter:i.sorter,data:n.data,"onUpdate:sorter":e[0]||(e[0]=t=>s.args.sort_processes_key=t)},null,8,["sorter","data"])]))}]]),Rh={id:"quicklook",class:"plugin"},Nh={class:"cpu-name"},qh={class:"table"},Uh={key:0,class:"table-row"},Fh=ai("div",{class:"table-cell text-left"},"CPU",-1),Bh={class:"table-cell"},zh={class:"progress"},$h=["aria-valuenow"],Hh={class:"table-cell"},Vh={class:"table-cell text-left"},Gh={class:"table-cell"},Wh={class:"progress"},Zh=["aria-valuenow"],Kh={class:"table-cell"},Xh={class:"table-row"},Jh=ai("div",{class:"table-cell text-left"},"MEM",-1),Yh={class:"table-cell"},Qh={class:"progress"},tg=["aria-valuenow"],eg={class:"table-cell"},ng={class:"table-row"},rg=ai("div",{class:"table-cell text-left"},"SWAP",-1),ig={class:"table-cell"},sg={class:"progress"},og=["aria-valuenow"],lg={class:"table-cell"};const ag={props:{data:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.quicklook},view(){return this.data.views.quicklook},mem(){return this.stats.mem},cpu(){return this.stats.cpu},cpu_name(){return this.stats.cpu_name},cpu_hz_current(){return this.stats.cpu_hz_current},cpu_hz(){return this.stats.cpu_hz},swap(){return this.stats.swap},percpus(){return this.stats.percpu.map((({cpu_number:t,total:e})=>({number:t,total:e})))}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},cg=(0,Ua.Z)(ag,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Rh,[ai("div",Nh,O(s.cpu_name),1),ai("div",qh,[s.args.percpu?hi("v-if",!0):(Xr(),ei("div",Uh,[Fh,ai("div",Bh,[ai("div",zh,[ai("div",{class:T(`progress-bar progress-bar-${s.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":s.cpu,"aria-valuemin":"0","aria-valuemax":"100",style:x(`width: ${s.cpu}%;`)},"   ",14,$h)])]),ai("div",Hh,O(s.cpu)+"%",1)])),s.args.percpu?(Xr(!0),ei(Hr,{key:1},ar(s.percpus,((t,e)=>(Xr(),ei("div",{class:"table-row",key:e},[ai("div",Vh,"CPU"+O(t.number),1),ai("div",Gh,[ai("div",Wh,[ai("div",{class:T(`progress-bar progress-bar-${s.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":t.total,"aria-valuemin":"0","aria-valuemax":"100",style:x(`width: ${t.total}%;`)},"   ",14,Zh)])]),ai("div",Kh,O(t.total)+"%",1)])))),128)):hi("v-if",!0),ai("div",Xh,[Jh,ai("div",Yh,[ai("div",Qh,[ai("div",{class:T(`progress-bar progress-bar-${s.getDecoration("mem")}`),role:"progressbar","aria-valuenow":s.mem,"aria-valuemin":"0","aria-valuemax":"100",style:x(`width: ${s.mem}%;`)},"   ",14,tg)])]),ai("div",eg,O(s.mem)+"%",1)]),ai("div",ng,[rg,ai("div",ig,[ai("div",sg,[ai("div",{class:T(`progress-bar progress-bar-${s.getDecoration("swap")}`),role:"progressbar","aria-valuenow":s.swap,"aria-valuemin":"0","aria-valuemax":"100",style:x(`width: ${s.swap}%;`)},"   ",14,og)])]),ai("div",lg,O(s.swap)+"%",1)])])])}]]),ug={class:"plugin",id:"raid"},dg={key:0,class:"table-row"},fg=[ai("div",{class:"table-cell text-left title"},"RAID disks",-1),ai("div",{class:"table-cell"},"Used",-1),ai("div",{class:"table-cell"},"Total",-1)],pg={class:"table-cell text-left"},hg={class:"warning"};const gg={props:{data:{type:Object}},computed:{stats(){return this.data.stats.raid},disks(){const t=Object.entries(this.stats).map((([t,e])=>{const n=Object.entries(e.components).map((([t,e])=>({number:e,name:t})));return{name:t,type:null==e.type?"UNKNOWN":e.type,used:e.used,available:e.available,status:e.status,degraded:e.used0}},methods:{getAlert:t=>t.inactive?"critical":t.degraded?"warning":"ok"}},mg=(0,Ua.Z)(gg,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",ug,[s.hasDisks?(Xr(),ei("div",dg,fg)):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.disks,((t,e)=>(Xr(),ei("div",{class:"table-row",key:e},[ai("div",pg,[fi(O(t.type.toUppercase())+" "+O(t.name)+" ",1),er(ai("div",hg,"└─ Degraded mode",512),[[ms,t.degraded]]),er(ai("div",null,"   └─ "+O(t.config),513),[[ms,t.degraded]]),er(ai("div",{class:"critical"},"└─ Status "+O(t.status),513),[[ms,t.inactive]]),t.inactive?(Xr(!0),ei(Hr,{key:0},ar(t.components,((e,n)=>(Xr(),ei("div",{key:n},"    "+O(n===t.components.length-1?"└─":"├─")+" disk "+O(e.number)+": "+O(e.name),1)))),128)):hi("v-if",!0)]),er(ai("div",{class:T(["table-cell",s.getAlert(t)])},O(t.used),3),[[ms,!t.inactive]]),er(ai("div",{class:T(["table-cell",s.getAlert(t)])},O(t.available),3),[[ms,!t.inactive]])])))),128))])}]]),bg={class:"plugin",id:"sensors"},vg={key:0,class:"table-row"},yg=[ai("div",{class:"table-cell text-left title"},"SENSORS",-1)],wg={class:"table-cell text-left"},_g={class:"table-cell"};const xg={props:{data:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.sensors},sensors(){return this.stats.filter((t=>!(Array.isArray(t.value)&&0===t.value.length||0===t.value))).map((t=>(this.args.fahrenheit&&"battery"!=t.type&&"fan_speed"!=t.type&&(t.value=parseFloat(1.8*t.value+32).toFixed(1),t.unit="F"),t)))}},methods:{getAlert(t){const e="battery"==t.type?100-t.value:t.value;return To.getAlert("sensors","sensors_"+t.type+"_",e)}}},kg=(0,Ua.Z)(xg,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",bg,[s.sensors.length>0?(Xr(),ei("div",vg,yg)):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.sensors,((t,e)=>(Xr(),ei("div",{class:"table-row",key:e},[ai("div",wg,O(t.label),1),ai("div",_g,O(t.unit),1),ai("div",{class:T(["table-cell",s.getAlert(t)])},O(t.value),3)])))),128))])}]]),Cg={class:"plugin",id:"system"},Sg={key:0,class:"critical"},Tg={class:"title"},Og={key:1,class:"hidden-xs hidden-sm"},Ag={key:2,class:"hidden-xs hidden-sm"};const Eg={props:{data:{type:Object}},data:()=>({store:ko}),computed:{stats(){return this.data.stats.system},isLinux(){return this.data.isLinux},hostname(){return this.stats.hostname},platform(){return this.stats.platform},os(){return{name:this.stats.os_name,version:this.stats.os_version}},humanReadableName(){return this.stats.hr_name},isDisconnected(){return"FAILURE"===this.store.status}}},Pg=(0,Ua.Z)(Eg,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Cg,[s.isDisconnected?(Xr(),ei("span",Sg,"Disconnected from")):hi("v-if",!0),ai("span",Tg,O(s.hostname),1),s.isLinux?(Xr(),ei("span",Og," ("+O(s.humanReadableName)+" / "+O(s.os.name)+" "+O(s.os.version)+") ",1)):hi("v-if",!0),s.isLinux?hi("v-if",!0):(Xr(),ei("span",Ag," ("+O(s.os.name)+" "+O(s.os.version)+" "+O(s.platform)+") ",1))])}]]),Lg={class:"plugin",id:"uptime"};const jg={props:{data:{type:Object}},computed:{value(){return this.data.stats.uptime}}},Mg=(0,Ua.Z)(jg,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Lg,[ai("span",null,"Uptime: "+O(s.value),1)])}]]),Dg={class:"plugin",id:"wifi"},Ig={key:0,class:"table-row"},Rg=[ai("div",{class:"table-cell text-left title"},"WIFI",-1),ai("div",{class:"table-cell"},null,-1),ai("div",{class:"table-cell"},"dBm",-1)],Ng={class:"table-cell text-left"},qg={key:0},Ug=ai("div",{class:"table-cell"},null,-1);const Fg={props:{data:{type:Object}},computed:{stats(){return this.data.stats.wifi},view(){return this.data.views.wifi},hotspots(){const t=this.stats.map((t=>{if(""!==t.ssid)return{ssid:t.ssid,encrypted:t.encrypted,signal:t.signal,encryption_type:t.encryption_type}})).filter(Boolean);return(0,Za.orderBy)(t,["ssid"])}},methods:{getDecoration(t,e){if(void 0!==this.view[t.ssid][e])return this.view[t.ssid][e].decoration.toLowerCase()}}},Bg={components:{GlancesHelp:Fa,GlancesPluginAlert:Xa,GlancesPluginCloud:tc,GlancesPluginConnections:kc,GlancesPluginCpu:bu,GlancesPluginDiskio:Uu,GlancesPluginDocker:rd,GlancesPluginFolders:ud,GlancesPluginFs:wd,GlancesPluginGpu:qd,GlancesPluginIp:Gd,GlancesPluginIrq:tf,GlancesPluginLoad:gf,GlancesPluginMem:Pf,GlancesPluginMemMore:Gf,GlancesPluginMemswap:lp,GlancesPluginNetwork:Sp,GlancesPluginNow:Ap,GlancesPluginPercpu:Hp,GlancesPluginPorts:nh,GlancesPluginProcess:Ih,GlancesPluginQuicklook:cg,GlancesPluginRaid:mg,GlancesPluginSensors:kg,GlancesPluginSystem:Pg,GlancesPluginUptime:Mg,GlancesPluginWifi:(0,Ua.Z)(Fg,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Dg,[s.hotspots.length>0?(Xr(),ei("div",Ig,Rg)):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.hotspots,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Ng,[fi(O(t.$filters.limitTo(e.ssid,20))+" ",1),e.encrypted?(Xr(),ei("span",qg,O(e.encryption_type),1)):hi("v-if",!0)]),Ug,ai("div",{class:T(["table-cell",s.getDecoration(e,"signal")])},O(e.signal),3)])))),128))])}]])},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},data(){return this.store.data||{}},dataLoaded(){return void 0!==this.store.data},hasGpu(){return this.store.data.stats.gpu.length>0},isLinux(){return this.store.data.isLinux},title(){const{data:t}=this,e=t.stats&&t.stats.system&&t.stats.system.hostname||"";return e?`${e} - Glances`:"Glances"}},watch:{title(){document&&(document.title=this.title)}},methods:{setupHotKeys(){yo("a",(()=>{this.store.args.sort_processes_key=null})),yo("c",(()=>{this.store.args.sort_processes_key="cpu_percent"})),yo("m",(()=>{this.store.args.sort_processes_key="memory_percent"})),yo("u",(()=>{this.store.args.sort_processes_key="username"})),yo("p",(()=>{this.store.args.sort_processes_key="name"})),yo("i",(()=>{this.store.args.sort_processes_key="io_counters"})),yo("t",(()=>{this.store.args.sort_processes_key="timemillis"})),yo("shift+A",(()=>{this.store.args.disable_amps=!this.store.args.disable_amps})),yo("d",(()=>{this.store.args.disable_diskio=!this.store.args.disable_diskio})),yo("shift+Q",(()=>{this.store.args.enable_irq=!this.store.args.enable_irq})),yo("f",(()=>{this.store.args.disable_fs=!this.store.args.disable_fs})),yo("j",(()=>{this.store.args.programs=!this.store.args.programs})),yo("k",(()=>{this.store.args.disable_connections=!this.store.args.disable_connections})),yo("n",(()=>{this.store.args.disable_network=!this.store.args.disable_network})),yo("s",(()=>{this.store.args.disable_sensors=!this.store.args.disable_sensors})),yo("2",(()=>{this.store.args.disable_left_sidebar=!this.store.args.disable_left_sidebar})),yo("z",(()=>{this.store.args.disable_process=!this.store.args.disable_process})),yo("/",(()=>{this.store.args.process_short_name=!this.store.args.process_short_name})),yo("shift+D",(()=>{this.store.args.disable_docker=!this.store.args.disable_docker})),yo("b",(()=>{this.store.args.byte=!this.store.args.byte})),yo("shift+B",(()=>{this.store.args.diskio_iops=!this.store.args.diskio_iops})),yo("l",(()=>{this.store.args.disable_alert=!this.store.args.disable_alert})),yo("1",(()=>{this.store.args.percpu=!this.store.args.percpu})),yo("h",(()=>{this.store.args.help_tag=!this.store.args.help_tag})),yo("shift+T",(()=>{this.store.args.network_sum=!this.store.args.network_sum})),yo("shift+U",(()=>{this.store.args.network_cumul=!this.store.args.network_cumul})),yo("shift+F",(()=>{this.store.args.fs_free_space=!this.store.args.fs_free_space})),yo("3",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook})),yo("6",(()=>{this.store.args.meangpu=!this.store.args.meangpu})),yo("shift+G",(()=>{this.store.args.disable_gpu=!this.store.args.disable_gpu})),yo("5",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook,this.store.args.disable_cpu=!this.store.args.disable_cpu,this.store.args.disable_mem=!this.store.args.disable_mem,this.store.args.disable_memswap=!this.store.args.disable_memswap,this.store.args.disable_load=!this.store.args.disable_load,this.store.args.disable_gpu=!this.store.args.disable_gpu})),yo("shift+I",(()=>{this.store.args.disable_ip=!this.store.args.disable_ip})),yo("shift+P",(()=>{this.store.args.disable_ports=!this.store.args.disable_ports})),yo("shift+W",(()=>{this.store.args.disable_wifi=!this.store.args.disable_wifi}))}},mounted(){const t=window.__GLANCES__||{},e=isFinite(t["refresh-time"])?parseInt(t["refresh-time"],10):void 0;Oo.init(e),this.setupHotKeys()},beforeUnmount(){yo.unbind()}};const zg=((...t)=>{const e=ws().createApp(...t);const{mount:n}=e;return e.mount=t=>{const r=_s(t);if(!r)return;const i=e._component;$(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},e})((0,Ua.Z)(Bg,[["render",function(t,e,n,r,i,s){const o=ir("glances-help"),l=ir("glances-plugin-system"),a=ir("glances-plugin-ip"),c=ir("glances-plugin-uptime"),u=ir("glances-plugin-cloud"),d=ir("glances-plugin-quicklook"),f=ir("glances-plugin-cpu"),p=ir("glances-plugin-percpu"),h=ir("glances-plugin-gpu"),g=ir("glances-plugin-mem"),m=ir("glances-plugin-mem-more"),b=ir("glances-plugin-memswap"),v=ir("glances-plugin-load"),y=ir("glances-plugin-network"),w=ir("glances-plugin-connections"),_=ir("glances-plugin-wifi"),x=ir("glances-plugin-ports"),k=ir("glances-plugin-diskio"),C=ir("glances-plugin-fs"),S=ir("glances-plugin-irq"),T=ir("glances-plugin-folders"),O=ir("glances-plugin-raid"),A=ir("glances-plugin-sensors"),E=ir("glances-plugin-docker"),P=ir("glances-plugin-process"),L=ir("glances-plugin-alert"),j=ir("glances-plugin-now");return s.dataLoaded?s.args.help_tag?(Xr(),ni(o,{key:1})):(Xr(),ei("main",Cs,[ai("div",Ss,[ai("div",Ts,[ai("div",Os,[ai("div",As,[ci(l,{data:s.data},null,8,["data"])]),s.args.disable_ip?hi("v-if",!0):(Xr(),ei("div",Es,[ci(a,{data:s.data},null,8,["data"])])),ai("div",Ps,[ci(c,{data:s.data},null,8,["data"])])])])]),ai("div",Ls,[ai("div",js,[ai("div",Ms,[ai("div",Ds,[ci(u,{data:s.data},null,8,["data"])])])]),ai("div",Is,[s.args.disable_quicklook?hi("v-if",!0):(Xr(),ei("div",Rs,[ci(d,{data:s.data},null,8,["data"])])),s.args.disable_cpu||s.args.percpu?hi("v-if",!0):(Xr(),ei("div",Ns,[ci(f,{data:s.data},null,8,["data"])])),!s.args.disable_cpu&&s.args.percpu?(Xr(),ei("div",qs,[ci(p,{data:s.data},null,8,["data"])])):hi("v-if",!0),!s.args.disable_gpu&&s.hasGpu?(Xr(),ei("div",Us,[ci(h,{data:s.data},null,8,["data"])])):hi("v-if",!0),s.args.disable_mem?hi("v-if",!0):(Xr(),ei("div",Fs,[ci(g,{data:s.data},null,8,["data"])])),hi(" NOTE: display if MEM enabled and GPU disabled "),s.args.disable_mem||!s.args.disable_gpu&&s.hasGpu?hi("v-if",!0):(Xr(),ei("div",Bs,[ci(m,{data:s.data},null,8,["data"])])),s.args.disable_memswap?hi("v-if",!0):(Xr(),ei("div",zs,[ci(b,{data:s.data},null,8,["data"])])),s.args.disable_load?hi("v-if",!0):(Xr(),ei("div",$s,[ci(v,{data:s.data},null,8,["data"])]))])]),ai("div",Hs,[ai("div",Vs,[s.args.disable_left_sidebar?hi("v-if",!0):(Xr(),ei("div",Gs,[ai("div",Ws,[s.args.disable_network?hi("v-if",!0):(Xr(),ni(y,{key:0,id:"plugin-network",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.isLinux&&!s.args.disable_connections?(Xr(),ni(w,{key:1,id:"plugin-connections",class:"plugin table-row-group",data:s.data},null,8,["data"])):hi("v-if",!0),s.args.disable_wifi?hi("v-if",!0):(Xr(),ni(_,{key:2,id:"plugin-wifi",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_ports?hi("v-if",!0):(Xr(),ni(x,{key:3,id:"plugin-ports",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_diskio?hi("v-if",!0):(Xr(),ni(k,{key:4,id:"plugin-diskio",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_fs?hi("v-if",!0):(Xr(),ni(C,{key:5,id:"plugin-fs",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.enable_irq?(Xr(),ni(S,{key:6,id:"plugin-irq",class:"plugin table-row-group",data:s.data},null,8,["data"])):hi("v-if",!0),s.args.disable_folders?hi("v-if",!0):(Xr(),ni(T,{key:7,id:"plugin-folders",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.raid?hi("v-if",!0):(Xr(),ni(O,{key:8,id:"plugin-raid",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_sensors?hi("v-if",!0):(Xr(),ni(A,{key:9,id:"plugin-sensors",class:"plugin table-row-group",data:s.data},null,8,["data"]))])])),ai("div",Zs,[s.args.disable_docker?hi("v-if",!0):(Xr(),ni(E,{key:0,data:s.data},null,8,["data"])),ci(P,{data:s.data},null,8,["data"]),s.args.disable_alert?hi("v-if",!0):(Xr(),ni(L,{key:1,data:s.data},null,8,["data"]))])])]),ai("div",Ks,[ai("div",Xs,[ai("div",Js,[ci(j,{data:s.data},null,8,["data"])])])])])):(Xr(),ei("div",xs,ks))}]]));zg.config.globalProperties.$filters=t,zg.mount("#app")})()})(); \ No newline at end of file +var Ys="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Qs(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on".concat(e),(function(){n(window.event)}))}function to(t,e){for(var n=e.slice(0,e.length-1),r=0;r=0;)e[n-1]+=",",e.splice(n,1),n=e.lastIndexOf("");return e}for(var no={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Ys?173:189,"=":Ys?61:187,";":Ys?59:186,"'":222,"[":219,"]":221,"\\":220},ro={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},io={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},so={16:!1,18:!1,17:!1,91:!1},oo={},lo=1;lo<20;lo++)no["f".concat(lo)]=111+lo;var ao=[],co=!1,uo="all",fo=[],po=function(t){return no[t.toLowerCase()]||ro[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function ho(t){uo=t||"all"}function go(){return uo||"all"}var mo=function(t){var e=t.key,n=t.scope,r=t.method,i=t.splitKey,s=void 0===i?"+":i;eo(e).forEach((function(t){var e=t.split(s),i=e.length,o=e[i-1],l="*"===o?"*":po(o);if(oo[l]){n||(n=go());var a=i>1?to(ro,e):[];oo[l]=oo[l].filter((function(t){return!((!r||t.method===r)&&t.scope===n&&function(t,e){for(var n=t.length>=e.length?t:e,r=t.length>=e.length?e:t,i=!0,s=0;s0,so)Object.prototype.hasOwnProperty.call(so,s)&&(!so[s]&&e.mods.indexOf(+s)>-1||so[s]&&-1===e.mods.indexOf(+s))&&(i=!1);(0!==e.mods.length||so[16]||so[18]||so[17]||so[91])&&!i&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function vo(t,e){var n=oo["*"],r=t.keyCode||t.which||t.charCode;if(yo.filter.call(this,t)){if(93!==r&&224!==r||(r=91),-1===ao.indexOf(r)&&229!==r&&ao.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var n=io[e];t[e]&&-1===ao.indexOf(n)?ao.push(n):!t[e]&&ao.indexOf(n)>-1?ao.splice(ao.indexOf(n),1):"metaKey"===e&&t[e]&&3===ao.length&&(t.ctrlKey||t.shiftKey||t.altKey||(ao=ao.slice(ao.indexOf(n))))})),r in so){for(var i in so[r]=!0,ro)ro[i]===r&&(yo[i]=!0);if(!n)return}for(var s in so)Object.prototype.hasOwnProperty.call(so,s)&&(so[s]=t[io[s]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===ao.indexOf(17)&&ao.push(17),-1===ao.indexOf(18)&&ao.push(18),so[17]=!0,so[18]=!0);var o=go();if(n)for(var l=0;l1&&(i=to(ro,t)),(t="*"===(t=t[t.length-1])?"*":po(t))in oo||(oo[t]=[]),oo[t].push({keyup:a,keydown:c,scope:s,mods:i,shortcut:r[l],method:n,key:r[l],splitKey:u,element:o});void 0!==o&&!function(t){return fo.indexOf(t)>-1}(o)&&window&&(fo.push(o),Qs(o,"keydown",(function(t){vo(t,o)}),d),co||(co=!0,Qs(window,"focus",(function(){ao=[]}),d)),Qs(o,"keyup",(function(t){vo(t,o),function(t){var e=t.keyCode||t.which||t.charCode,n=ao.indexOf(e);if(n>=0&&ao.splice(n,1),t.key&&"meta"===t.key.toLowerCase()&&ao.splice(0,ao.length),93!==e&&224!==e||(e=91),e in so)for(var r in so[e]=!1,ro)ro[r]===e&&(yo[r]=!1)}(t)}),d))}var wo={getPressedKeyString:function(){return ao.map((function(t){return e=t,Object.keys(no).find((function(t){return no[t]===e}))||function(t){return Object.keys(ro).find((function(e){return ro[e]===t}))}(t)||String.fromCharCode(t);var e}))},setScope:ho,getScope:go,deleteScope:function(t,e){var n,r;for(var i in t||(t=go()),oo)if(Object.prototype.hasOwnProperty.call(oo,i))for(n=oo[i],r=0;r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(oo).forEach((function(n){var r=oo[n].find((function(n){return n.scope===e&&n.shortcut===t}));r&&r.method&&r.method()}))},unbind:function(t){if(void 0===t)Object.keys(oo).forEach((function(t){return delete oo[t]}));else if(Array.isArray(t))t.forEach((function(t){t.key&&mo(t)}));else if("object"==typeof t)t.key&&mo(t);else if("string"==typeof t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=this.limits[t][a]){var c=a.lastIndexOf("_");return a.substring(c+1)+s}}return"ok"+s}getAlertLog(t,e,n,r){return this.getAlert(t,e,n,r,!0)}};const Oo=new class{data=void 0;init(t=60){let e;const n=()=>(ko.status="PENDING",Promise.all([fetch("api/3/all",{method:"GET"}).then((t=>t.json())),fetch("api/3/all/views",{method:"GET"}).then((t=>t.json()))]).then((t=>{const e={stats:t[0],views:t[1],isBsd:"FreeBSD"===t[0].system.os_name,isLinux:"Linux"===t[0].system.os_name,isSunOS:"SunOS"===t[0].system.os_name,isMac:"Darwin"===t[0].system.os_name,isWindows:"Windows"===t[0].system.os_name};this.data=e,ko.data=e,ko.status="SUCCESS"})).catch((t=>{console.log(t),ko.status="FAILURE"})).then((()=>{e&&clearTimeout(e),e=setTimeout(n,1e3*t)})));n(),fetch("api/3/all/limits",{method:"GET"}).then((t=>t.json())).then((t=>{To.setLimits(t)})),fetch("api/3/args",{method:"GET"}).then((t=>t.json())).then(((t={})=>{ko.args={...ko.args,...t}})),fetch("api/3/config",{method:"GET"}).then((t=>t.json())).then(((t={})=>{ko.config={...ko.config,...t}}))}getData(){return this.data}};const Ao=new class{constructor(){this.favico=new(So())({animation:"none"})}badge(t){this.favico.badge(t)}reset(){this.favico.reset()}},Eo={key:0},Po={class:"container-fluid"},Lo={class:"row"},jo={class:"col-sm-12 col-lg-24"},Mo=ai("div",{class:"row"}," ",-1),Do={class:"row"},Io={class:"col-sm-12 col-lg-24"},Ro=ai("div",{class:"row"}," ",-1),No={class:"divTable",style:{width:"100%"}},qo={class:"divTableBody"},Uo={class:"divTableRow"},Fo={class:"divTableHead"},Bo={class:"divTableHead"},zo={class:"divTableHead"},$o={class:"divTableHead"},Ho={class:"divTableRow"},Vo={class:"divTableCell"},Go={class:"divTableCell"},Wo={class:"divTableCell"},Zo={class:"divTableCell"},Ko={class:"divTableRow"},Xo={class:"divTableCell"},Jo={class:"divTableCell"},Yo={class:"divTableCell"},Qo={class:"divTableCell"},tl={class:"divTableRow"},el={class:"divTableCell"},nl={class:"divTableCell"},rl={class:"divTableCell"},il={class:"divTableCell"},sl={class:"divTableRow"},ol={class:"divTableCell"},ll={class:"divTableCell"},al={class:"divTableCell"},cl={class:"divTableCell"},ul={class:"divTableRow"},dl={class:"divTableCell"},fl={class:"divTableCell"},pl={class:"divTableCell"},hl={class:"divTableCell"},gl={class:"divTableRow"},ml={class:"divTableCell"},bl={class:"divTableCell"},vl={class:"divTableCell"},yl={class:"divTableCell"},wl={class:"divTableRow"},_l={class:"divTableCell"},xl={class:"divTableCell"},kl={class:"divTableCell"},Cl={class:"divTableCell"},Sl={class:"divTableRow"},Tl=ai("div",{class:"divTableCell"}," ",-1),Ol={class:"divTableCell"},Al={class:"divTableCell"},El={class:"divTableCell"},Pl={class:"divTableRow"},Ll=ai("div",{class:"divTableCell"}," ",-1),jl={class:"divTableCell"},Ml={class:"divTableCell"},Dl={class:"divTableCell"},Il={class:"divTableRow"},Rl=ai("div",{class:"divTableCell"}," ",-1),Nl={class:"divTableCell"},ql={class:"divTableCell"},Ul={class:"divTableCell"},Fl={class:"divTableRow"},Bl=ai("div",{class:"divTableCell"}," ",-1),zl={class:"divTableCell"},$l=ai("div",{class:"divTableCell"}," ",-1),Hl={class:"divTableCell"},Vl={class:"divTableRow"},Gl=ai("div",{class:"divTableCell"}," ",-1),Wl={class:"divTableCell"},Zl=ai("div",{class:"divTableCell"}," ",-1),Kl=ai("div",{class:"divTableCell"}," ",-1),Xl={class:"divTableRow"},Jl=ai("div",{class:"divTableCell"}," ",-1),Yl={class:"divTableCell"},Ql=ai("div",{class:"divTableCell"}," ",-1),ta=ai("div",{class:"divTableCell"}," ",-1),ea={class:"divTableRow"},na=ai("div",{class:"divTableCell"}," ",-1),ra={class:"divTableCell"},ia=ai("div",{class:"divTableCell"}," ",-1),sa=ai("div",{class:"divTableCell"}," ",-1),oa={class:"divTableRow"},la=ai("div",{class:"divTableCell"}," ",-1),aa={class:"divTableCell"},ca=ai("div",{class:"divTableCell"}," ",-1),ua=ai("div",{class:"divTableCell"}," ",-1),da={class:"divTableRow"},fa=ai("div",{class:"divTableCell"}," ",-1),pa={class:"divTableCell"},ha=ai("div",{class:"divTableCell"}," ",-1),ga=ai("div",{class:"divTableCell"}," ",-1),ma={class:"divTableRow"},ba=ai("div",{class:"divTableCell"}," ",-1),va={class:"divTableCell"},ya=ai("div",{class:"divTableCell"}," ",-1),wa=ai("div",{class:"divTableCell"}," ",-1),_a={class:"divTableRow"},xa=ai("div",{class:"divTableCell"}," ",-1),ka={class:"divTableCell"},Ca=ai("div",{class:"divTableCell"}," ",-1),Sa=ai("div",{class:"divTableCell"}," ",-1),Ta={class:"divTableRow"},Oa=ai("div",{class:"divTableCell"}," ",-1),Aa={class:"divTableCell"},Ea=ai("div",{class:"divTableCell"}," ",-1),Pa=ai("div",{class:"divTableCell"}," ",-1),La={class:"divTableRow"},ja=ai("div",{class:"divTableCell"}," ",-1),Ma={class:"divTableCell"},Da=ai("div",{class:"divTableCell"}," ",-1),Ia=ai("div",{class:"divTableCell"}," ",-1),Ra=ai("div",null,[ai("p",null,[fi(" For an exhaustive list of key bindings, "),ai("a",{href:"https://glances.readthedocs.io/en/latest/cmds.html#interactive-commands"},"click here"),fi(". ")])],-1),Na=ai("div",null,[ai("p",null,[fi("Press "),ai("b",null,"h"),fi(" to came back to Glances.")])],-1);const qa={data:()=>({help:void 0}),mounted(){fetch("api/3/help",{method:"GET"}).then((t=>t.json())).then((t=>this.help=t))}};var Ua=n(3744);const Fa=(0,Ua.Z)(qa,[["render",function(t,e,n,r,i,s){return i.help?(Xr(),ei("div",Eo,[ai("div",Po,[ai("div",Lo,[ai("div",jo,O(i.help.version)+" "+O(i.help.psutil_version),1)]),Mo,ai("div",Do,[ai("div",Io,O(i.help.configuration_file),1)]),Ro]),ai("div",No,[ai("div",qo,[ai("div",Uo,[ai("div",Fo,O(i.help.header_sort.replace(":","")),1),ai("div",Bo,O(i.help.header_show_hide.replace(":","")),1),ai("div",zo,O(i.help.header_toggle.replace(":","")),1),ai("div",$o,O(i.help.header_miscellaneous.replace(":","")),1)]),ai("div",Ho,[ai("div",Vo,O(i.help.sort_auto),1),ai("div",Go,O(i.help.show_hide_application_monitoring),1),ai("div",Wo,O(i.help.toggle_bits_bytes),1),ai("div",Zo,O(i.help.misc_erase_process_filter),1)]),ai("div",Ko,[ai("div",Xo,O(i.help.sort_cpu),1),ai("div",Jo,O(i.help.show_hide_diskio),1),ai("div",Yo,O(i.help.toggle_count_rate),1),ai("div",Qo,O(i.help.misc_generate_history_graphs),1)]),ai("div",tl,[ai("div",el,O(i.help.sort_io_rate),1),ai("div",nl,O(i.help.show_hide_docker),1),ai("div",rl,O(i.help.toggle_used_free),1),ai("div",il,O(i.help.misc_help),1)]),ai("div",sl,[ai("div",ol,O(i.help.sort_mem),1),ai("div",ll,O(i.help.show_hide_top_extended_stats),1),ai("div",al,O(i.help.toggle_bar_sparkline),1),ai("div",cl,O(i.help.misc_accumulate_processes_by_program),1)]),ai("div",ul,[ai("div",dl,O(i.help.sort_process_name),1),ai("div",fl,O(i.help.show_hide_filesystem),1),ai("div",pl,O(i.help.toggle_separate_combined),1),ai("div",hl,O(i.help.misc_kill_process)+" - N/A in WebUI ",1)]),ai("div",gl,[ai("div",ml,O(i.help.sort_cpu_times),1),ai("div",bl,O(i.help.show_hide_gpu),1),ai("div",vl,O(i.help.toggle_live_cumulative),1),ai("div",yl,O(i.help.misc_reset_processes_summary_min_max),1)]),ai("div",wl,[ai("div",_l,O(i.help.sort_user),1),ai("div",xl,O(i.help.show_hide_ip),1),ai("div",kl,O(i.help.toggle_linux_percentage),1),ai("div",Cl,O(i.help.misc_quit),1)]),ai("div",Sl,[Tl,ai("div",Ol,O(i.help.show_hide_tcp_connection),1),ai("div",Al,O(i.help.toggle_cpu_individual_combined),1),ai("div",El,O(i.help.misc_reset_history),1)]),ai("div",Pl,[Ll,ai("div",jl,O(i.help.show_hide_alert),1),ai("div",Ml,O(i.help.toggle_gpu_individual_combined),1),ai("div",Dl,O(i.help.misc_delete_warning_alerts),1)]),ai("div",Il,[Rl,ai("div",Nl,O(i.help.show_hide_network),1),ai("div",ql,O(i.help.toggle_short_full),1),ai("div",Ul,O(i.help.misc_delete_warning_and_critical_alerts),1)]),ai("div",Fl,[Bl,ai("div",zl,O(i.help.sort_cpu_times),1),$l,ai("div",Hl,O(i.help.misc_edit_process_filter_pattern)+" - N/A in WebUI ",1)]),ai("div",Vl,[Gl,ai("div",Wl,O(i.help.show_hide_irq),1),Zl,Kl]),ai("div",Xl,[Jl,ai("div",Yl,O(i.help.show_hide_raid_plugin),1),Ql,ta]),ai("div",ea,[na,ai("div",ra,O(i.help.show_hide_sensors),1),ia,sa]),ai("div",oa,[la,ai("div",aa,O(i.help.show_hide_wifi_module),1),ca,ua]),ai("div",da,[fa,ai("div",pa,O(i.help.show_hide_processes),1),ha,ga]),ai("div",ma,[ba,ai("div",va,O(i.help.show_hide_left_sidebar),1),ya,wa]),ai("div",_a,[xa,ai("div",ka,O(i.help.show_hide_quick_look),1),Ca,Sa]),ai("div",Ta,[Oa,ai("div",Aa,O(i.help.show_hide_cpu_mem_swap),1),Ea,Pa]),ai("div",La,[ja,ai("div",Ma,O(i.help.show_hide_all),1),Da,Ia])])]),Ra,Na])):hi("v-if",!0)}]]),Ba={class:"plugin"},za={id:"alerts"},$a={key:0,class:"title"},Ha={key:1,class:"title"},Va={id:"alert"},Ga={class:"table"},Wa={class:"table-cell text-left"};var Za=n(6486);const Ka={props:{data:{type:Object}},computed:{stats(){return this.data.stats.alert},alerts(){return(this.stats||[]).map((t=>{const e={};if(e.name=t[3],e.level=t[2],e.begin=1e3*t[0],e.end=1e3*t[1],e.ongoing=-1==t[1],e.min=t[6],e.mean=t[5],e.max=t[4],!e.ongoing){const t=e.end-e.begin,n=parseInt(t/1e3%60),r=parseInt(t/6e4%60),i=parseInt(t/36e5%24);e.duration=(0,Za.padStart)(i,2,"0")+":"+(0,Za.padStart)(r,2,"0")+":"+(0,Za.padStart)(n,2,"0")}return e}))},hasAlerts(){return this.countAlerts>0},countAlerts(){return this.alerts.length},hasOngoingAlerts(){return this.countOngoingAlerts>0},countOngoingAlerts(){return this.alerts.filter((({ongoing:t})=>t)).length}},watch:{countOngoingAlerts(){this.countOngoingAlerts?Ao.badge(this.countOngoingAlerts):Ao.reset()}},methods:{formatDate:t=>new Date(t).toISOString().slice(0,19).replace(/[^\d-:]/," ")}},Xa=(0,Ua.Z)(Ka,[["render",function(t,e,n,r,i,s){return Xr(),ei("div",Ba,[ai("section",za,[s.hasAlerts?(Xr(),ei("span",$a," Warning or critical alerts (last "+O(s.countAlerts)+" entries) ",1)):(Xr(),ei("span",Ha,"No warning or critical alert detected"))]),ai("section",Va,[ai("div",Ga,[(Xr(!0),ei(Hr,null,ar(s.alerts,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Wa,[fi(O(s.formatDate(e.begin))+" ("+O(e.ongoing?"ongoing":e.duration)+") - ",1),er(ai("span",null,O(e.level)+" on ",513),[[ms,!e.ongoing]]),ai("span",{class:T(e.level.toLowerCase())},O(e.name),3),fi(" ("+O(t.$filters.number(e.max,1))+") ",1)])])))),128))])])])}]]),Ja={key:0,id:"cloud",class:"plugin"},Ya={class:"title"};const Qa={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cloud},provider(){return void 0!==this.stats["ami-id"]?"AWS EC2":null},instance(){const{stats:t}=this;return void 0!==this.stats["ami-id"]?`${t["instance-type"]} instance ${t["instance-id"]} (${t.reggion})`:null}}},tc=(0,Ua.Z)(Qa,[["render",function(t,e,n,r,i,s){return s.instance||s.provider?(Xr(),ei("section",Ja,[ai("span",Ya,O(s.provider),1),fi(" "+O(s.instance),1)])):hi("v-if",!0)}]]),ec={class:"plugin",id:"connections"},nc=ai("div",{class:"table-row"},[ai("div",{class:"table-cell text-left title"},"TCP CONNECTIONS"),ai("div",{class:"table-cell"})],-1),rc={class:"table-row"},ic=ai("div",{class:"table-cell text-left"},"Listen",-1),sc=ai("div",{class:"table-cell"},null,-1),oc={class:"table-cell"},lc={class:"table-row"},ac=ai("div",{class:"table-cell text-left"},"Initiated",-1),cc=ai("div",{class:"table-cell"},null,-1),uc={class:"table-cell"},dc={class:"table-row"},fc=ai("div",{class:"table-cell text-left"},"Established",-1),pc=ai("div",{class:"table-cell"},null,-1),hc={class:"table-cell"},gc={class:"table-row"},mc=ai("div",{class:"table-cell text-left"},"Terminated",-1),bc=ai("div",{class:"table-cell"},null,-1),vc={class:"table-cell"},yc={class:"table-row"},wc=ai("div",{class:"table-cell text-left"},"Tracked",-1),_c=ai("div",{class:"table-cell"},null,-1);const xc={props:{data:{type:Object}},computed:{stats(){return this.data.stats.connections},view(){return this.data.views.connections},listen(){return this.stats.LISTEN},initiated(){return this.stats.initiated},established(){return this.stats.ESTABLISHED},terminated(){return this.stats.terminated},tracked(){return{count:this.stats.nf_conntrack_count,max:this.stats.nf_conntrack_max}}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},kc=(0,Ua.Z)(xc,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",ec,[nc,ai("div",rc,[ic,sc,ai("div",oc,O(s.listen),1)]),ai("div",lc,[ac,cc,ai("div",uc,O(s.initiated),1)]),ai("div",dc,[fc,pc,ai("div",hc,O(s.established),1)]),ai("div",gc,[mc,bc,ai("div",vc,O(s.terminated),1)]),ai("div",yc,[wc,_c,ai("div",{class:T(["table-cell",s.getDecoration("nf_conntrack_percent")])},O(s.tracked.count)+"/"+O(s.tracked.max),3)])])}]]),Cc={id:"cpu",class:"plugin"},Sc={class:"row"},Tc={class:"col-sm-24 col-md-12 col-lg-8"},Oc={class:"table"},Ac={class:"table-row"},Ec=ai("div",{class:"table-cell text-left title"},"CPU",-1),Pc={class:"table-cell"},Lc={class:"table-row"},jc=ai("div",{class:"table-cell text-left"},"user:",-1),Mc={class:"table-row"},Dc=ai("div",{class:"table-cell text-left"},"system:",-1),Ic={class:"table-row"},Rc=ai("div",{class:"table-cell text-left"},"iowait:",-1),Nc={class:"table-row"},qc=ai("div",{class:"table-cell text-left"},"dpc:",-1),Uc={class:"hidden-xs hidden-sm col-md-12 col-lg-8"},Fc={class:"table"},Bc={class:"table-row"},zc=ai("div",{class:"table-cell text-left"},"idle:",-1),$c={class:"table-cell"},Hc={class:"table-row"},Vc=ai("div",{class:"table-cell text-left"},"irq:",-1),Gc={class:"table-cell"},Wc={class:"table-row"},Zc=ai("div",{class:"table-cell text-left"},"inter:",-1),Kc={class:"table-cell"},Xc={class:"table-row"},Jc=ai("div",{class:"table-cell text-left"},"nice:",-1),Yc={class:"table-cell"},Qc={key:0,class:"table-row"},tu=ai("div",{class:"table-cell text-left"},"ctx_sw:",-1),eu={class:"table-row"},nu=ai("div",{class:"table-cell text-left"},"steal:",-1),ru={key:1,class:"table-row"},iu=ai("div",{class:"table-cell text-left"},"syscal:",-1),su={class:"table-cell"},ou={class:"hidden-xs hidden-sm hidden-md col-lg-8"},lu={class:"table"},au={key:0,class:"table-row"},cu=ai("div",{class:"table-cell text-left"},"ctx_sw:",-1),uu={key:1,class:"table-row"},du=ai("div",{class:"table-cell text-left"},"inter:",-1),fu={class:"table-cell"},pu={key:2,class:"table-row"},hu=ai("div",{class:"table-cell text-left"},"sw_int:",-1),gu={class:"table-cell"};const mu={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cpu},view(){return this.data.views.cpu},isLinux(){return this.data.isLinux},isSunOS(){return this.data.isSunOS},isWindows(){return this.data.isWindows},total(){return this.stats.total},user(){return this.stats.user},system(){return this.stats.system},idle(){return this.stats.idle},nice(){return this.stats.nice},irq(){return this.stats.irq},iowait(){return this.stats.iowait},dpc(){return this.stats.dpc},steal(){return this.stats.steal},ctx_switches(){const{stats:t}=this;return t.ctx_switches?Math.floor(t.ctx_switches/t.time_since_update):null},interrupts(){const{stats:t}=this;return t.interrupts?Math.floor(t.interrupts/t.time_since_update):null},soft_interrupts(){const{stats:t}=this;return t.soft_interrupts?Math.floor(t.soft_interrupts/t.time_since_update):null},syscalls(){const{stats:t}=this;return t.syscalls?Math.floor(t.syscalls/t.time_since_update):null}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},bu=(0,Ua.Z)(mu,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Cc,[ai("div",Sc,[ai("div",Tc,[ai("div",Oc,[ai("div",Ac,[Ec,ai("div",Pc,O(s.total)+"%",1)]),ai("div",Lc,[jc,ai("div",{class:T(["table-cell",s.getDecoration("user")])},O(s.user)+"%",3)]),ai("div",Mc,[Dc,ai("div",{class:T(["table-cell",s.getDecoration("system")])},O(s.system)+"%",3)]),er(ai("div",Ic,[Rc,ai("div",{class:T(["table-cell",s.getDecoration("iowait")])},O(s.iowait)+"%",3)],512),[[ms,null!=s.iowait]]),er(ai("div",Nc,[qc,ai("div",{class:T(["table-cell",s.getDecoration("dpc")])},O(s.dpc)+"%",3)],512),[[ms,null==s.iowait&&null!=s.dpc]])])]),ai("div",Uc,[ai("div",Fc,[ai("div",Bc,[zc,ai("div",$c,O(s.idle)+"%",1)]),er(ai("div",Hc,[Vc,ai("div",Gc,O(s.irq)+"%",1)],512),[[ms,null!=s.irq]]),hi(" If no irq, display interrupts "),er(ai("div",Wc,[Zc,ai("div",Kc,O(s.interrupts),1)],512),[[ms,null==s.irq]]),er(ai("div",Xc,[Jc,ai("div",Yc,O(s.nice)+"%",1)],512),[[ms,null!=s.nice]]),hi(" If no nice, display ctx_switches "),null==s.nice&&s.ctx_switches?(Xr(),ei("div",Qc,[tu,ai("div",{class:T(["table-cell",s.getDecoration("ctx_switches")])},O(s.ctx_switches),3)])):hi("v-if",!0),er(ai("div",eu,[nu,ai("div",{class:T(["table-cell",s.getDecoration("steal")])},O(s.steal)+"%",3)],512),[[ms,null!=s.steal]]),!s.isLinux&&s.syscalls?(Xr(),ei("div",ru,[iu,ai("div",su,O(s.syscalls),1)])):hi("v-if",!0)])]),ai("div",ou,[ai("div",lu,[hi(" If not already display instead of nice, then display ctx_switches "),null!=s.nice&&s.ctx_switches?(Xr(),ei("div",au,[cu,ai("div",{class:T(["table-cell",s.getDecoration("ctx_switches")])},O(s.ctx_switches),3)])):hi("v-if",!0),hi(" If not already display instead of irq, then display interrupts "),null!=s.irq&&s.interrupts?(Xr(),ei("div",uu,[du,ai("div",fu,O(s.interrupts),1)])):hi("v-if",!0),s.isWindows||s.isSunOS||!s.soft_interrupts?hi("v-if",!0):(Xr(),ei("div",pu,[hu,ai("div",gu,O(s.soft_interrupts),1)]))])])])])}]]),vu={class:"plugin",id:"diskio"},yu={key:0,class:"table-row"},wu=ai("div",{class:"table-cell text-left title"},"DISK I/O",-1),_u={class:"table-cell"},xu={class:"table-cell"},ku={class:"table-cell"},Cu={class:"table-cell"},Su={class:"table-cell text-left"};var Tu=n(1036),Ou=n.n(Tu);function Au(t,e){return Eu(t=8*Math.round(t),e)+"b"}function Eu(t,e){if(e=e||!1,isNaN(parseFloat(t))||!isFinite(t)||0==t)return t;const n=["Y","Z","E","P","T","G","M","K"],r={Y:12089258196146292e8,Z:11805916207174113e5,E:0x1000000000000000,P:0x4000000000000,T:1099511627776,G:1073741824,M:1048576,K:1024};for(var i=0;i1){var l=0;return o<10?l=2:o<100&&(l=1),e?l="MK"==s?0:(0,Za.min)([1,l]):"K"==s&&(l=0),parseFloat(o).toFixed(l)+s}}return t.toFixed(0)}function Pu(t){return void 0===t||""===t?"?":t}function Lu(t,e,n){return e=e||0,n=n||" ",String(t).padStart(e,n)}function ju(t,e){return"function"!=typeof t.slice&&(t=String(t)),t.slice(0,e)}function Mu(t,e){return e=e||8,t.length>e?"_"+t.substring(t.length-e+1):t}function Du(t){if(void 0===t)return t;var e=function(t){var e=document.createElement("div");return e.innerText=t,e.innerHTML}(t),n=e.replace(/\n/g,"
");return Ou()(n)}function Iu(t,e){return new Intl.NumberFormat(void 0,"number"==typeof e?{maximumFractionDigits:e}:e).format(t)}function Ru(t){for(var e=0,n=0;n({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.diskio},disks(){const t=this.stats.map((t=>{const e=t.time_since_update;return{name:t.disk_name,bitrate:{txps:Eu(t.read_bytes/e),rxps:Eu(t.write_bytes/e)},count:{txps:Eu(t.read_count/e),rxps:Eu(t.write_count/e)},alias:void 0!==t.alias?t.alias:null}}));return(0,Za.orderBy)(t,["name"])}}},Uu=(0,Ua.Z)(qu,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",vu,[s.disks.length>0?(Xr(),ei("div",yu,[wu,er(ai("div",_u,"R/s",512),[[ms,!s.args.diskio_iops]]),er(ai("div",xu,"W/s",512),[[ms,!s.args.diskio_iops]]),er(ai("div",ku,"IOR/s",512),[[ms,s.args.diskio_iops]]),er(ai("div",Cu,"IOW/s",512),[[ms,s.args.diskio_iops]])])):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.disks,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Su,O(t.$filters.minSize(e.alias?e.alias:e.name,32)),1),er(ai("div",{class:"table-cell"},O(e.bitrate.txps),513),[[ms,!s.args.diskio_iops]]),er(ai("div",{class:"table-cell"},O(e.bitrate.rxps),513),[[ms,!s.args.diskio_iops]]),er(ai("div",{class:"table-cell"},O(e.count.txps),513),[[ms,s.args.diskio_iops]]),er(ai("div",{class:"table-cell"},O(e.count.rxps),513),[[ms,s.args.diskio_iops]])])))),128))])}]]),Fu={key:0,id:"containers-plugin",class:"plugin"},Bu=ai("span",{class:"title"},"CONTAINERS",-1),zu={class:"table"},$u={class:"table-row"},Hu=ai("div",{class:"table-cell"},"Status",-1),Vu=ai("div",{class:"table-cell"},"Uptime",-1),Gu=pi('
/MAX
IOR/s
IOW/s
RX/s
TX/s
Command
',6),Wu={class:"table-cell text-left"},Zu={class:"table-cell"},Ku={class:"table-cell"},Xu={class:"table-cell"},Ju={class:"table-cell"},Yu={class:"table-cell"},Qu={class:"table-cell"},td={class:"table-cell"},ed={class:"table-cell text-left"};const nd={props:{data:{type:Object}},data:()=>({store:ko,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.docker},containers(){const{sorter:t}=this,e=(this.stats.containers||[]).map((t=>({id:t.Id,name:t.name,status:t.Status,uptime:t.Uptime,cpu_percent:t.cpu.total,memory_usage:null!=t.memory.usage?t.memory.usage:"?",limit:null!=t.memory.limit?t.memory.limit:"?",ior:null!=t.io.ior?t.io.ior:"?",iow:null!=t.io.iow?t.io.iow:"?",io_time_since_update:t.io.time_since_update,rx:null!=t.network.rx?t.network.rx:"?",tx:null!=t.network.tx?t.network.tx:"?",net_time_since_update:t.network.time_since_update,command:t.Command.join(" "),image:t.Image})));return(0,Za.orderBy)(e,[t.column].reduce(((t,e)=>("memory_percent"===e&&(e=["memory_usage"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"])}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["cpu_percent","memory_percent","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["name"].includes(t)},getColumnLabel:function(t){return{io_counters:"disk IO",cpu_percent:"CPU consumption",memory_usage:"memory consumption",cpu_times:"uptime",name:"container name",None:"None"}[t]||t}})}}}},rd=(0,Ua.Z)(nd,[["render",function(t,e,n,r,i,s){return s.containers.length?(Xr(),ei("section",Fu,[Bu,fi(" "+O(s.containers.length)+" sorted by "+O(i.sorter.getColumnLabel(i.sorter.column))+" ",1),ai("div",zu,[ai("div",$u,[ai("div",{class:T(["table-cell text-left",["sortable","name"===i.sorter.column&&"sort"]]),onClick:e[0]||(e[0]=t=>s.args.sort_processes_key="name")}," Name ",2),Hu,Vu,ai("div",{class:T(["table-cell",["sortable","cpu_percent"===i.sorter.column&&"sort"]]),onClick:e[1]||(e[1]=t=>s.args.sort_processes_key="cpu_percent")}," CPU% ",2),ai("div",{class:T(["table-cell",["sortable","memory_percent"===i.sorter.column&&"sort"]]),onClick:e[2]||(e[2]=t=>s.args.sort_processes_key="memory_percent")}," MEM ",2),Gu]),(Xr(!0),ei(Hr,null,ar(s.containers,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Wu,O(e.name),1),ai("div",{class:T(["table-cell","Paused"==e.status?"careful":"ok"])},O(e.status),3),ai("div",{class:T(["table-cell","Paused"==e.status?"careful":"ok"])},O(e.uptime),3),ai("div",Zu,O(t.$filters.number(e.cpu_percent,1)),1),ai("div",Ku,O(t.$filters.bytes(e.memory_usage)),1),ai("div",Xu,O(t.$filters.bytes(e.limit)),1),ai("div",Ju,O(t.$filters.bits(e.ior/e.io_time_since_update)),1),ai("div",Yu,O(t.$filters.bits(e.iow/e.io_time_since_update)),1),ai("div",Qu,O(t.$filters.bits(e.rx/e.net_time_since_update)),1),ai("div",td,O(t.$filters.bits(e.tx/e.net_time_since_update)),1),ai("div",ed,O(e.command),1)])))),128))])])):hi("v-if",!0)}]]),id={class:"plugin",id:"folders"},sd={key:0,class:"table-row"},od=[ai("div",{class:"table-cell text-left title"},"FOLDERS",-1),ai("div",{class:"table-cell"},null,-1),ai("div",{class:"table-cell"},"Size",-1)],ld={class:"table-cell text-left"},ad=ai("div",{class:"table-cell"},null,-1);const cd={props:{data:{type:Object}},computed:{stats(){return this.data.stats.folders},folders(){return this.stats.map((t=>({path:t.path,size:t.size,careful:t.careful,warning:t.warning,critical:t.critical})))}},methods:{getDecoration(t){if(Number.isInteger(t.size))return null!==t.critical&&t.size>1e6*t.critical?"critical":null!==t.warning&&t.size>1e6*t.warning?"warning":null!==t.careful&&t.size>1e6*t.careful?"careful":"ok"}}},ud=(0,Ua.Z)(cd,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",id,[s.folders.length>0?(Xr(),ei("div",sd,od)):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.folders,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",ld,O(e.path),1),ad,ai("div",{class:T(["table-cell",s.getDecoration(e)])},O(t.$filters.bytes(e.size)),3)])))),128))])}]]),dd={class:"plugin",id:"fs"},fd={class:"table-row"},pd=ai("div",{class:"table-cell text-left title"},"FILE SYS",-1),hd={class:"table-cell"},gd=ai("div",{class:"table-cell"},"Total",-1),md={class:"table-cell text-left"},bd={key:0,class:"visible-lg-inline"},vd={class:"table-cell"};const yd={props:{data:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.fs},view(){return this.data.views.fs},fileSystems(){const t=this.stats.map((t=>{let e=t.mnt_point;return e.length>22&&(e="_"+t.mnt_point.slice(-21)),{name:t.device_name,mountPoint:t.mnt_point,shortMountPoint:e,percent:t.percent,size:t.size,used:t.used,free:t.free}}));return(0,Za.orderBy)(t,["mnt_point"])}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},wd=(0,Ua.Z)(yd,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",dd,[ai("div",fd,[pd,ai("div",hd,[er(ai("span",null,"Used",512),[[ms,!s.args.fs_free_space]]),er(ai("span",null,"Free",512),[[ms,s.args.fs_free_space]])]),gd]),(Xr(!0),ei(Hr,null,ar(s.fileSystems,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",md,[fi(O(e.shortMountPoint)+" ",1),e.shortMountPoint.length<=12?(Xr(),ei("span",bd," ("+O(e.name)+") ",1)):hi("v-if",!0)]),ai("div",{class:T(["table-cell",s.getDecoration(e.mountPoint,"used")])},[er(ai("span",null,O(t.$filters.bytes(e.used)),513),[[ms,!s.args.fs_free_space]]),er(ai("span",null,O(t.$filters.bytes(e.free)),513),[[ms,s.args.fs_free_space]])],2),ai("div",vd,O(t.$filters.bytes(e.size)),1)])))),128))])}]]),_d={id:"gpu",class:"plugin"},xd={class:"gpu-name title"},kd={class:"table"},Cd={key:0,class:"table-row"},Sd=ai("div",{class:"table-cell text-left"},"proc:",-1),Td={key:1,class:"table-cell"},Od={key:1,class:"table-row"},Ad=ai("div",{class:"table-cell text-left"},"mem:",-1),Ed={key:1,class:"table-cell"},Pd={key:2,class:"table-row"},Ld=ai("div",{class:"table-cell text-left"},"temperature::",-1),jd={key:1,class:"table-cell"},Md={class:"table-cell text-left"},Dd={key:1},Id={key:3},Rd={key:5};const Nd={props:{data:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.gpu},view(){return this.data.views.gpu},gpus(){return this.stats},name(){let t="GPU";const{stats:e}=this;return 1===e.length?t=e[0].name:e.length&&(t=`${e.length} GPU ${e[0].name}`),t},mean(){const t={proc:null,mem:null,temperature:null},{stats:e}=this;if(!e.length)return t;for(let n of e)t.proc+=n.proc,t.mem+=n.mem,t.temperature+=n.temperature;return t.proc=t.proc/e.length,t.mem=t.mem/e.length,t.temperature=t.temperature/e.length,t}},methods:{getDecoration(t,e){if(void 0!==this.view[t][e])return this.view[t][e].decoration.toLowerCase()},getMeanDecoration(t){return this.getDecoration(0,t)}}},qd=(0,Ua.Z)(Nd,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",_d,[ai("div",xd,O(s.name),1),ai("div",kd,[s.args.meangpu||1===s.gpus.length?(Xr(),ei("div",Cd,[Sd,null!=s.mean.proc?(Xr(),ei("div",{key:0,class:T(["table-cell",s.getMeanDecoration("proc")])},O(t.$filters.number(s.mean.proc,0))+"% ",3)):hi("v-if",!0),null==s.mean.proc?(Xr(),ei("div",Td,"N/A")):hi("v-if",!0)])):hi("v-if",!0),s.args.meangpu||1===s.gpus.length?(Xr(),ei("div",Od,[Ad,null!=s.mean.mem?(Xr(),ei("div",{key:0,class:T(["table-cell",s.getMeanDecoration("mem")])},O(t.$filters.number(s.mean.mem,0))+"% ",3)):hi("v-if",!0),null==s.mean.mem?(Xr(),ei("div",Ed,"N/A")):hi("v-if",!0)])):hi("v-if",!0),s.args.meangpu||1===s.gpus.length?(Xr(),ei("div",Pd,[Ld,null!=s.mean.temperature?(Xr(),ei("div",{key:0,class:T(["table-cell",s.getMeanDecoration("temperature")])},O(t.$filters.number(s.mean.temperature,0))+"° ",3)):hi("v-if",!0),null==s.mean.temperature?(Xr(),ei("div",jd,"N/A")):hi("v-if",!0)])):hi("v-if",!0),!s.args.meangpu&&s.gpus.length>1?(Xr(!0),ei(Hr,{key:3},ar(s.gpus,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Md,[fi(O(e.gpu_id)+": ",1),null!=e.proc?(Xr(),ei("span",{key:0,class:T(s.getDecoration(e.gpu_id,"proc"))},O(t.$filters.number(e.proc,0))+"% ",3)):hi("v-if",!0),null==e.proc?(Xr(),ei("span",Dd,"N/A")):hi("v-if",!0),fi(" mem: "),null!=e.mem?(Xr(),ei("span",{key:2,class:T(s.getDecoration(e.gpu_id,"mem"))},O(t.$filters.number(e.mem,0))+"% ",3)):hi("v-if",!0),null==e.mem?(Xr(),ei("span",Id,"N/A")):hi("v-if",!0),fi(" temp: "),null!=e.temperature?(Xr(),ei("span",{key:4,class:T(s.getDecoration(e.gpu_id,"temperature"))},O(t.$filters.number(e.temperature,0))+"C ",3)):hi("v-if",!0),null==e.temperature?(Xr(),ei("span",Rd,"N/A")):hi("v-if",!0)])])))),128)):hi("v-if",!0)])])}]]),Ud={key:0,class:"plugin",id:"ip"},Fd={key:0,class:"title"},Bd={key:1},zd={key:2,class:"title"},$d={key:3},Hd={key:4};const Vd={props:{data:{type:Object}},computed:{ipStats(){return this.data.stats.ip},address(){return this.ipStats.address},gateway(){return this.ipStats.gateway},maskCdir(){return this.ipStats.mask_cidr},publicAddress(){return this.ipStats.public_address},publicInfo(){return this.ipStats.public_info_human}}},Gd=(0,Ua.Z)(Vd,[["render",function(t,e,n,r,i,s){return null!=s.address?(Xr(),ei("section",Ud,[null!=s.address?(Xr(),ei("span",Fd,"IP")):hi("v-if",!0),null!=s.address?(Xr(),ei("span",Bd,O(s.address)+"/"+O(s.maskCdir),1)):hi("v-if",!0),null!=s.publicAddress?(Xr(),ei("span",zd,"Pub")):hi("v-if",!0),null!=s.publicAddress?(Xr(),ei("span",$d,O(s.publicAddress),1)):hi("v-if",!0),null!=s.publicInfo?(Xr(),ei("span",Hd,O(s.publicInfo),1)):hi("v-if",!0)])):hi("v-if",!0)}]]),Wd={class:"plugin",id:"irq"},Zd={key:0,class:"table-row"},Kd=[ai("div",{class:"table-cell text-left title"},"IRQ",-1),ai("div",{class:"table-cell"},null,-1),ai("div",{class:"table-cell"},"Rate/s",-1)],Xd={class:"table-cell text-left"},Jd=ai("div",{class:"table-cell"},null,-1),Yd={class:"table-cell"};const Qd={props:{data:{type:Object}},computed:{stats(){return this.data.stats.irq},irqs(){return this.stats.map((t=>({irq_line:t.irq_line,irq_rate:t.irq_rate})))}}},tf=(0,Ua.Z)(Qd,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Wd,[s.irqs.length>0?(Xr(),ei("div",Zd,Kd)):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.irqs,((t,e)=>(Xr(),ei("div",{class:"table-row",key:e},[ai("div",Xd,O(t.irq_line),1),Jd,ai("div",Yd,[ai("span",null,O(t.irq_rate),1)])])))),128))])}]]),ef={key:0,id:"load",class:"plugin"},nf={class:"table"},rf={class:"table-row"},sf=ai("div",{class:"table-cell text-left title"},"LOAD",-1),of={class:"table-cell"},lf={class:"table-row"},af=ai("div",{class:"table-cell text-left"},"1 min:",-1),cf={class:"table-cell"},uf={class:"table-row"},df=ai("div",{class:"table-cell text-left"},"5 min:",-1),ff={class:"table-row"},pf=ai("div",{class:"table-cell text-left"},"15 min:",-1);const hf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.load},view(){return this.data.views.load},cpucore(){return this.stats.cpucore},min1(){return this.stats.min1},min5(){return this.stats.min5},min15(){return this.stats.min15}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},gf=(0,Ua.Z)(hf,[["render",function(t,e,n,r,i,s){return null!=s.cpucore?(Xr(),ei("section",ef,[ai("div",nf,[ai("div",rf,[sf,ai("div",of,O(s.cpucore)+"-core",1)]),ai("div",lf,[af,ai("div",cf,O(t.$filters.number(s.min1,2)),1)]),ai("div",uf,[df,ai("div",{class:T(["table-cell",s.getDecoration("min5")])},O(t.$filters.number(s.min5,2)),3)]),ai("div",ff,[pf,ai("div",{class:T(["table-cell",s.getDecoration("min15")])},O(t.$filters.number(s.min15,2)),3)])])])):hi("v-if",!0)}]]),mf={id:"mem",class:"plugin"},bf={class:"table"},vf={class:"table-row"},yf=ai("div",{class:"table-cell text-left title"},"MEM",-1),wf={class:"table-cell"},_f={class:"table-row"},xf=ai("div",{class:"table-cell text-left"},"total:",-1),kf={class:"table-cell"},Cf={class:"table-row"},Sf=ai("div",{class:"table-cell text-left"},"used:",-1),Tf={class:"table-row"},Of=ai("div",{class:"table-cell text-left"},"free:",-1),Af={class:"table-cell"};const Ef={props:{data:{type:Object}},computed:{stats(){return this.data.stats.mem},view(){return this.data.views.mem},percent(){return this.stats.percent},total(){return this.stats.total},used(){return this.stats.used},free(){return this.stats.free}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},Pf=(0,Ua.Z)(Ef,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",mf,[ai("div",bf,[ai("div",vf,[yf,ai("div",wf,O(s.percent)+"%",1)]),ai("div",_f,[xf,ai("div",kf,O(t.$filters.bytes(s.total)),1)]),ai("div",Cf,[Sf,ai("div",{class:T(["table-cell",s.getDecoration("used")])},O(t.$filters.bytes(s.used,2)),3)]),ai("div",Tf,[Of,ai("div",Af,O(t.$filters.bytes(s.free)),1)])])])}]]),Lf={id:"mem-more",class:"plugin"},jf={class:"table"},Mf={class:"table-row"},Df=ai("div",{class:"table-cell text-left"},"active:",-1),If={class:"table-cell"},Rf={class:"table-row"},Nf=ai("div",{class:"table-cell text-left"},"inactive:",-1),qf={class:"table-cell"},Uf={class:"table-row"},Ff=ai("div",{class:"table-cell text-left"},"buffers:",-1),Bf={class:"table-cell"},zf={class:"table-row"},$f=ai("div",{class:"table-cell text-left"},"cached:",-1),Hf={class:"table-cell"};const Vf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.mem},active(){return this.stats.active},inactive(){return this.stats.inactive},buffers(){return this.stats.buffers},cached(){return this.stats.cached}}},Gf=(0,Ua.Z)(Vf,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Lf,[ai("div",jf,[er(ai("div",Mf,[Df,ai("div",If,O(t.$filters.bytes(s.active)),1)],512),[[ms,null!=s.active]]),er(ai("div",Rf,[Nf,ai("div",qf,O(t.$filters.bytes(s.inactive)),1)],512),[[ms,null!=s.inactive]]),er(ai("div",Uf,[Ff,ai("div",Bf,O(t.$filters.bytes(s.buffers)),1)],512),[[ms,null!=s.buffers]]),er(ai("div",zf,[$f,ai("div",Hf,O(t.$filters.bytes(s.cached)),1)],512),[[ms,null!=s.cached]])])])}]]),Wf={id:"memswap",class:"plugin"},Zf={class:"table"},Kf={class:"table-row"},Xf=ai("div",{class:"table-cell text-left title"},"SWAP",-1),Jf={class:"table-cell"},Yf={class:"table-row"},Qf=ai("div",{class:"table-cell text-left"},"total:",-1),tp={class:"table-cell"},ep={class:"table-row"},np=ai("div",{class:"table-cell text-left"},"used:",-1),rp={class:"table-row"},ip=ai("div",{class:"table-cell text-left"},"free:",-1),sp={class:"table-cell"};const op={props:{data:{type:Object}},computed:{stats(){return this.data.stats.memswap},view(){return this.data.views.memswap},percent(){return this.stats.percent},total(){return this.stats.total},used(){return this.stats.used},free(){return this.stats.free}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},lp=(0,Ua.Z)(op,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Wf,[ai("div",Zf,[ai("div",Kf,[Xf,ai("div",Jf,O(s.percent)+"%",1)]),ai("div",Yf,[Qf,ai("div",tp,O(t.$filters.bytes(s.total)),1)]),ai("div",ep,[np,ai("div",{class:T(["table-cell",s.getDecoration("used")])},O(t.$filters.bytes(s.used)),3)]),ai("div",rp,[ip,ai("div",sp,O(t.$filters.bytes(s.free)),1)])])])}]]),ap={class:"plugin",id:"network"},cp={class:"table-row"},up=ai("div",{class:"table-cell text-left title"},"NETWORK",-1),dp={class:"table-cell"},fp={class:"table-cell"},pp={class:"table-cell"},hp={class:"table-cell"},gp={class:"table-cell"},mp={class:"table-cell"},bp={class:"table-cell"},vp={class:"table-cell"},yp={class:"table-cell text-left"},wp={class:"visible-lg-inline"},_p={class:"hidden-lg"},xp={class:"table-cell"},kp={class:"table-cell"};const Cp={props:{data:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.network},networks(){const t=this.stats.map((t=>{const e=void 0!==t.alias?t.alias:null;return{interfaceName:t.interface_name,ifname:e||t.interface_name,rx:t.rx,tx:t.tx,cx:t.cx,time_since_update:t.time_since_update,cumulativeRx:t.cumulative_rx,cumulativeTx:t.cumulative_tx,cumulativeCx:t.cumulative_cx}}));return(0,Za.orderBy)(t,["interfaceName"])}}},Sp=(0,Ua.Z)(Cp,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",ap,[ai("div",cp,[up,er(ai("div",dp,"Rx/s",512),[[ms,!s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",fp,"Tx/s",512),[[ms,!s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",pp,null,512),[[ms,!s.args.network_cumul&&s.args.network_sum]]),er(ai("div",hp,"Rx+Tx/s",512),[[ms,!s.args.network_cumul&&s.args.network_sum]]),er(ai("div",gp,"Rx",512),[[ms,s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",mp,"Tx",512),[[ms,s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",bp,null,512),[[ms,s.args.network_cumul&&s.args.network_sum]]),er(ai("div",vp,"Rx+Tx",512),[[ms,s.args.network_cumul&&s.args.network_sum]])]),(Xr(!0),ei(Hr,null,ar(s.networks,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",yp,[ai("span",wp,O(e.ifname),1),ai("span",_p,O(t.$filters.minSize(e.ifname)),1)]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.rx/e.time_since_update):t.$filters.bits(e.rx/e.time_since_update)),513),[[ms,!s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.tx/e.time_since_update):t.$filters.bits(e.tx/e.time_since_update)),513),[[ms,!s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",xp,null,512),[[ms,!s.args.network_cumul&&s.args.network_sum]]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.cx/e.time_since_update):t.$filters.bits(e.cx/e.time_since_update)),513),[[ms,!s.args.network_cumul&&s.args.network_sum]]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.cumulativeRx):t.$filters.bits(e.cumulativeRx)),513),[[ms,s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.cumulativeTx):t.$filters.bits(e.cumulativeTx)),513),[[ms,s.args.network_cumul&&!s.args.network_sum]]),er(ai("div",kp,null,512),[[ms,s.args.network_cumul&&s.args.network_sum]]),er(ai("div",{class:"table-cell"},O(s.args.byte?t.$filters.bytes(e.cumulativeCx):t.$filters.bits(e.cumulativeCx)),513),[[ms,s.args.network_cumul&&s.args.network_sum]])])))),128))])}]]),Tp={id:"now",class:"plugin"};const Op={props:{data:{type:Object}},computed:{value(){return this.data.stats.now}}},Ap=(0,Ua.Z)(Op,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Tp,[ai("span",null,O(s.value),1)])}]]),Ep={id:"percpu",class:"plugin"},Pp={class:"table-row"},Lp={class:"table-cell text-left title"},jp={key:0},Mp={class:"table-row"},Dp=ai("div",{class:"table-cell text-left"},"user:",-1),Ip={class:"table-row"},Rp=ai("div",{class:"table-cell text-left"},"system:",-1),Np={class:"table-row"},qp=ai("div",{class:"table-cell text-left"},"idle:",-1),Up={key:0,class:"table-row"},Fp=ai("div",{class:"table-cell text-left"},"iowait:",-1),Bp={key:1,class:"table-row"},zp=ai("div",{class:"table-cell text-left"},"steal:",-1);const $p={props:{data:{type:Object}},computed:{percpuStats(){return this.data.stats.percpu},cpusChunks(){const t=this.percpuStats.map((t=>({number:t.cpu_number,total:t.total,user:t.user,system:t.system,idle:t.idle,iowait:t.iowait,steal:t.steal})));return(0,Za.chunk)(t,4)}},methods:{getUserAlert:t=>To.getAlert("percpu","percpu_user_",t.user),getSystemAlert:t=>To.getAlert("percpu","percpu_system_",t.system)}},Hp=(0,Ua.Z)($p,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Ep,[(Xr(!0),ei(Hr,null,ar(s.cpusChunks,((t,e)=>(Xr(),ei("div",{class:"table",key:e},[ai("div",Pp,[ai("div",Lp,[0===e?(Xr(),ei("span",jp,"PER CPU")):hi("v-if",!0)]),(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:"table-cell",key:e},O(t.total)+"% ",1)))),128))]),ai("div",Mp,[Dp,(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:T(["table-cell",s.getUserAlert(t)]),key:e},O(t.user)+"% ",3)))),128))]),ai("div",Ip,[Rp,(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:T(["table-cell",s.getSystemAlert(t)]),key:e},O(t.system)+"% ",3)))),128))]),ai("div",Np,[qp,(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:"table-cell",key:e},O(t.idle)+"% ",1)))),128))]),t[0].iowait?(Xr(),ei("div",Up,[Fp,(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:T(["table-cell",s.getSystemAlert(t)]),key:e},O(t.iowait)+"% ",3)))),128))])):hi("v-if",!0),t[0].steal?(Xr(),ei("div",Bp,[zp,(Xr(!0),ei(Hr,null,ar(t,((t,e)=>(Xr(),ei("div",{class:T(["table-cell",s.getSystemAlert(t)]),key:e},O(t.steal)+"% ",3)))),128))])):hi("v-if",!0)])))),128))])}]]),Vp={class:"plugin",id:"ports"},Gp={class:"table-cell text-left"},Wp=ai("div",{class:"table-cell"},null,-1),Zp={key:0},Kp={key:1},Xp={key:2},Jp={key:3},Yp={key:0},Qp={key:1},th={key:2};const eh={props:{data:{type:Object}},computed:{stats(){return this.data.stats.ports},ports(){return this.stats}},methods:{getPortDecoration:t=>null===t.status?"careful":!1===t.status?"critical":null!==t.rtt_warning&&t.status>t.rtt_warning?"warning":"ok",getWebDecoration:t=>null===t.status?"careful":-1===[200,301,302].indexOf(t.status)?"critical":null!==t.rtt_warning&&t.elapsed>t.rtt_warning?"warning":"ok"}},nh=(0,Ua.Z)(eh,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Vp,[(Xr(!0),ei(Hr,null,ar(s.ports,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Gp,[hi(" prettier-ignore "),fi(O(t.$filters.minSize(e.description?e.description:e.host+" "+e.port,20)),1)]),Wp,e.host?(Xr(),ei("div",{key:0,class:T([s.getPortDecoration(e),"table-cell"])},["null"==e.status?(Xr(),ei("span",Zp,"Scanning")):"false"==e.status?(Xr(),ei("span",Kp,"Timeout")):"true"==e.status?(Xr(),ei("span",Xp,"Open")):(Xr(),ei("span",Jp,O(t.$filters.number(1e3*e.status,0))+"ms",1))],2)):hi("v-if",!0),e.url?(Xr(),ei("div",{key:1,class:T([s.getWebDecoration(e),"table-cell"])},["null"==e.status?(Xr(),ei("span",Yp,"Scanning")):"Error"==e.status?(Xr(),ei("span",Qp,"Error")):(Xr(),ei("span",th,"Code "+O(e.status),1))],2)):hi("v-if",!0)])))),128))])}]]),rh={key:0},ih={key:1},sh={key:0,class:"row"},oh={class:"col-lg-18"};const lh={id:"amps",class:"plugin"},ah={class:"table"},ch={key:0,class:"table-cell text-left"},uh=["innerHTML"];const dh={props:{data:{type:Object}},computed:{stats(){return this.data.stats.amps},processes(){return this.stats.filter((t=>null!==t.result))}},methods:{getNameDecoration(t){const e=t.count,n=t.countmin,r=t.countmax;let i="ok";return i=e>0?(null===n||e>=n)&&(null===r||e<=r)?"ok":"careful":null===n?"ok":"critical",i}}},fh=(0,Ua.Z)(dh,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",lh,[ai("div",ah,[(Xr(!0),ei(Hr,null,ar(s.processes,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",{class:T(["table-cell text-left",s.getNameDecoration(e)])},O(e.name),3),e.regex?(Xr(),ei("div",ch,O(e.count),1)):hi("v-if",!0),ai("div",{class:"table-cell text-left process-result",innerHTML:t.$filters.nl2br(e.result)},null,8,uh)])))),128))])])}]]),ph={id:"processcount",class:"plugin"},hh=ai("span",{class:"title"},"TASKS",-1),gh={class:"title"};const mh={props:{data:{type:Object},sorter:{type:Object}},computed:{stats(){return this.data.stats.processcount},total(){return this.stats.total||0},running(){return this.stats.running||0},sleeping(){return this.stats.sleeping||0},stopped(){return this.stats.stopped||0},thread(){return this.stats.thread||0}}},bh=(0,Ua.Z)(mh,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",ph,[hh,ai("span",null,O(s.total)+" ("+O(s.thread)+" thr),",1),ai("span",null,O(s.running)+" run,",1),ai("span",null,O(s.sleeping)+" slp,",1),ai("span",null,O(s.stopped)+" oth",1),ai("span",gh,O(n.sorter.auto?"sorted automatically":"sorted"),1),ai("span",null,"by "+O(n.sorter.getColumnLabel(n.sorter.column)),1)])}]]),vh={id:"processlist-plugin",class:"plugin"},yh={class:"table"},wh={class:"table-row"},_h=ai("div",{class:"table-cell hidden-xs hidden-sm"},"VIRT",-1),xh=ai("div",{class:"table-cell hidden-xs hidden-sm"},"RES",-1),kh=ai("div",{class:"table-cell"},"PID",-1),Ch=ai("div",{class:"table-cell"},"NI",-1),Sh=ai("div",{class:"table-cell"},"S",-1),Th={class:"table-cell hidden-xs hidden-sm"},Oh={class:"table-cell hidden-xs hidden-sm"},Ah={class:"table-cell"},Eh={class:"table-cell text-left"},Ph={key:0,class:"table-cell hidden-xs hidden-sm"},Lh={key:1,class:"table-cell hidden-xs hidden-sm"},jh={class:"table-cell text-left hidden-xs hidden-sm"};const Mh={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats(){return this.data.stats.processlist},processes(){const{sorter:t}=this,e=this.data.stats.isWindows,n=(this.stats||[]).map((t=>(t.memvirt="?",t.memres="?",t.memory_info&&(t.memvirt=t.memory_info[1],t.memres=t.memory_info[0]),t.timeplus="?",t.timemillis="?",t.cpu_times&&(t.timeplus=Nu(t.cpu_times),t.timemillis=Ru(t.cpu_times)),null===t.num_threads&&(t.num_threads=-1),null===t.cpu_percent&&(t.cpu_percent=-1),null===t.memory_percent&&(t.memory_percent=-1),t.io_read=null,t.io_write=null,t.io_counters&&(t.io_read=(t.io_counters[0]-t.io_counters[2])/t.time_since_update,t.io_write=(t.io_counters[1]-t.io_counters[3])/t.time_since_update),t.isNice=void 0!==t.nice&&(e&&32!=t.nice||!e&&0!=t.nice),Array.isArray(t.cmdline)&&(t.cmdline=t.cmdline.join(" ")),null===t.cmdline&&(t.cmdline=t.name),e&&null!==t.username&&(t.username=(0,Za.last)(t.username.split("\\"))),t)));return(0,Za.orderBy)(n,[t.column].reduce(((t,e)=>("io_counters"===e&&(e=["io_read","io_write"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"]).slice(0,this.limit)},ioReadWritePresent(){return(this.stats||[]).some((({io_counters:t})=>t))},limit(){return void 0!==this.config.outputs?this.config.outputs.max_processes_display:void 0}},methods:{getCpuPercentAlert:t=>To.getAlert("processlist","processlist_cpu_",t.cpu_percent),getMemoryPercentAlert:t=>To.getAlert("processlist","processlist_mem_",t.cpu_percent)}},Dh={components:{GlancesPluginAmps:fh,GlancesPluginProcesscount:bh,GlancesPluginProcesslist:(0,Ua.Z)(Mh,[["render",function(t,e,n,r,i,s){return Xr(),ei(Hr,null,[hi(" prettier-ignore "),ai("section",vh,[ai("div",yh,[ai("div",wh,[ai("div",{class:T(["table-cell",["sortable","cpu_percent"===n.sorter.column&&"sort"]]),onClick:e[0]||(e[0]=e=>t.$emit("update:sorter","cpu_percent"))}," CPU% ",2),ai("div",{class:T(["table-cell",["sortable","memory_percent"===n.sorter.column&&"sort"]]),onClick:e[1]||(e[1]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),_h,xh,kh,ai("div",{class:T(["table-cell text-left",["sortable","username"===n.sorter.column&&"sort"]]),onClick:e[2]||(e[2]=e=>t.$emit("update:sorter","username"))}," USER ",2),ai("div",{class:T(["table-cell hidden-xs hidden-sm",["sortable","timemillis"===n.sorter.column&&"sort"]]),onClick:e[3]||(e[3]=e=>t.$emit("update:sorter","timemillis"))}," TIME+ ",2),ai("div",{class:T(["table-cell text-left hidden-xs hidden-sm",["sortable","num_threads"===n.sorter.column&&"sort"]]),onClick:e[4]||(e[4]=e=>t.$emit("update:sorter","num_threads"))}," THR ",2),Ch,Sh,er(ai("div",{class:T(["table-cell hidden-xs hidden-sm",["sortable","io_counters"===n.sorter.column&&"sort"]]),onClick:e[5]||(e[5]=e=>t.$emit("update:sorter","io_counters"))}," IOR/s ",2),[[ms,s.ioReadWritePresent]]),er(ai("div",{class:T(["table-cell text-left hidden-xs hidden-sm",["sortable","io_counters"===n.sorter.column&&"sort"]]),onClick:e[6]||(e[6]=e=>t.$emit("update:sorter","io_counters"))}," IOW/s ",2),[[ms,s.ioReadWritePresent]]),ai("div",{class:T(["table-cell text-left",["sortable","name"===n.sorter.column&&"sort"]]),onClick:e[7]||(e[7]=e=>t.$emit("update:sorter","name"))}," Command ",2)]),(Xr(!0),ei(Hr,null,ar(s.processes,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",{class:T(["table-cell",s.getCpuPercentAlert(e)])},O(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent,1)),3),ai("div",{class:T(["table-cell",s.getMemoryPercentAlert(e)])},O(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),ai("div",Th,O(t.$filters.bytes(e.memvirt)),1),ai("div",Oh,O(t.$filters.bytes(e.memres)),1),ai("div",Ah,O(e.pid),1),ai("div",Eh,O(e.username),1),"?"!=e.timeplus?(Xr(),ei("div",Ph,[er(ai("span",{class:"highlight"},O(e.timeplus.hours)+"h",513),[[ms,e.timeplus.hours>0]]),fi(" "+O(t.$filters.leftPad(e.timeplus.minutes,2,"0"))+":"+O(t.$filters.leftPad(e.timeplus.seconds,2,"0"))+" ",1),er(ai("span",null,"."+O(t.$filters.leftPad(e.timeplus.milliseconds,2,"0")),513),[[ms,e.timeplus.hours<=0]])])):hi("v-if",!0),"?"==e.timeplus?(Xr(),ei("div",Lh,"?")):hi("v-if",!0),ai("div",jh,O(-1==e.num_threads?"?":e.num_threads),1),ai("div",{class:T(["table-cell",{nice:e.isNice}])},O(t.$filters.exclamation(e.nice)),3),ai("div",{class:T(["table-cell",{status:"R"==e.status}])},O(e.status),3),er(ai("div",{class:"table-cell hidden-xs hidden-sm"},O(t.$filters.bytes(e.io_read)),513),[[ms,s.ioReadWritePresent]]),er(ai("div",{class:"table-cell text-left hidden-xs hidden-sm"},O(t.$filters.bytes(e.io_write)),513),[[ms,s.ioReadWritePresent]]),er(ai("div",{class:"table-cell text-left"},O(e.name),513),[[ms,s.args.process_short_name]]),er(ai("div",{class:"table-cell text-left"},O(e.cmdline),513),[[ms,!s.args.process_short_name]])])))),128))])])],2112)}]])},props:{data:{type:Object}},data:()=>({store:ko,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["cpu_percent","memory_percent","username","timemillis","num_threads","io_counters","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["username","name"].includes(t)},getColumnLabel:function(t){return{io_counters:"disk IO",cpu_percent:"CPU consumption",memory_percent:"memory consumption",cpu_times:"process time",username:"user name",name:"process name",timemillis:"process time",None:"None"}[t]||t}})}}}},Ih=(0,Ua.Z)(Dh,[["render",function(t,e,n,r,i,s){const o=ir("glances-plugin-processcount"),l=ir("glances-plugin-amps"),a=ir("glances-plugin-processlist");return s.args.disable_process?(Xr(),ei("div",rh,"PROCESSES DISABLED (press 'z' to display)")):(Xr(),ei("div",ih,[ci(o,{sorter:i.sorter,data:n.data},null,8,["sorter","data"]),s.args.disable_amps?hi("v-if",!0):(Xr(),ei("div",sh,[ai("div",oh,[ci(l,{data:n.data},null,8,["data"])])])),ci(a,{sorter:i.sorter,data:n.data,"onUpdate:sorter":e[0]||(e[0]=t=>s.args.sort_processes_key=t)},null,8,["sorter","data"])]))}]]),Rh={id:"quicklook",class:"plugin"},Nh={class:"cpu-name"},qh={class:"table"},Uh={key:0,class:"table-row"},Fh=ai("div",{class:"table-cell text-left"},"CPU",-1),Bh={class:"table-cell"},zh={class:"progress"},$h=["aria-valuenow"],Hh={class:"table-cell"},Vh={class:"table-cell text-left"},Gh={class:"table-cell"},Wh={class:"progress"},Zh=["aria-valuenow"],Kh={class:"table-cell"},Xh={class:"table-row"},Jh=ai("div",{class:"table-cell text-left"},"MEM",-1),Yh={class:"table-cell"},Qh={class:"progress"},tg=["aria-valuenow"],eg={class:"table-cell"},ng={class:"table-row"},rg=ai("div",{class:"table-cell text-left"},"SWAP",-1),ig={class:"table-cell"},sg={class:"progress"},og=["aria-valuenow"],lg={class:"table-cell"};const ag={props:{data:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.quicklook},view(){return this.data.views.quicklook},mem(){return this.stats.mem},cpu(){return this.stats.cpu},cpu_name(){return this.stats.cpu_name},cpu_hz_current(){return this.stats.cpu_hz_current},cpu_hz(){return this.stats.cpu_hz},swap(){return this.stats.swap},percpus(){return this.stats.percpu.map((({cpu_number:t,total:e})=>({number:t,total:e})))}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},cg=(0,Ua.Z)(ag,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Rh,[ai("div",Nh,O(s.cpu_name),1),ai("div",qh,[s.args.percpu?hi("v-if",!0):(Xr(),ei("div",Uh,[Fh,ai("div",Bh,[ai("div",zh,[ai("div",{class:T(`progress-bar progress-bar-${s.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":s.cpu,"aria-valuemin":"0","aria-valuemax":"100",style:x(`width: ${s.cpu}%;`)},"   ",14,$h)])]),ai("div",Hh,O(s.cpu)+"%",1)])),s.args.percpu?(Xr(!0),ei(Hr,{key:1},ar(s.percpus,((t,e)=>(Xr(),ei("div",{class:"table-row",key:e},[ai("div",Vh,"CPU"+O(t.number),1),ai("div",Gh,[ai("div",Wh,[ai("div",{class:T(`progress-bar progress-bar-${s.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":t.total,"aria-valuemin":"0","aria-valuemax":"100",style:x(`width: ${t.total}%;`)},"   ",14,Zh)])]),ai("div",Kh,O(t.total)+"%",1)])))),128)):hi("v-if",!0),ai("div",Xh,[Jh,ai("div",Yh,[ai("div",Qh,[ai("div",{class:T(`progress-bar progress-bar-${s.getDecoration("mem")}`),role:"progressbar","aria-valuenow":s.mem,"aria-valuemin":"0","aria-valuemax":"100",style:x(`width: ${s.mem}%;`)},"   ",14,tg)])]),ai("div",eg,O(s.mem)+"%",1)]),ai("div",ng,[rg,ai("div",ig,[ai("div",sg,[ai("div",{class:T(`progress-bar progress-bar-${s.getDecoration("swap")}`),role:"progressbar","aria-valuenow":s.swap,"aria-valuemin":"0","aria-valuemax":"100",style:x(`width: ${s.swap}%;`)},"   ",14,og)])]),ai("div",lg,O(s.swap)+"%",1)])])])}]]),ug={class:"plugin",id:"raid"},dg={key:0,class:"table-row"},fg=[ai("div",{class:"table-cell text-left title"},"RAID disks",-1),ai("div",{class:"table-cell"},"Used",-1),ai("div",{class:"table-cell"},"Total",-1)],pg={class:"table-cell text-left"},hg={class:"warning"};const gg={props:{data:{type:Object}},computed:{stats(){return this.data.stats.raid},disks(){const t=Object.entries(this.stats).map((([t,e])=>{const n=Object.entries(e.components).map((([t,e])=>({number:e,name:t})));return{name:t,type:null==e.type?"UNKNOWN":e.type,used:e.used,available:e.available,status:e.status,degraded:e.used0}},methods:{getAlert:t=>t.inactive?"critical":t.degraded?"warning":"ok"}},mg=(0,Ua.Z)(gg,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",ug,[s.hasDisks?(Xr(),ei("div",dg,fg)):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.disks,((t,e)=>(Xr(),ei("div",{class:"table-row",key:e},[ai("div",pg,[fi(O(t.type.toUppercase())+" "+O(t.name)+" ",1),er(ai("div",hg,"└─ Degraded mode",512),[[ms,t.degraded]]),er(ai("div",null,"   └─ "+O(t.config),513),[[ms,t.degraded]]),er(ai("div",{class:"critical"},"└─ Status "+O(t.status),513),[[ms,t.inactive]]),t.inactive?(Xr(!0),ei(Hr,{key:0},ar(t.components,((e,n)=>(Xr(),ei("div",{key:n},"    "+O(n===t.components.length-1?"└─":"├─")+" disk "+O(e.number)+": "+O(e.name),1)))),128)):hi("v-if",!0)]),er(ai("div",{class:T(["table-cell",s.getAlert(t)])},O(t.used),3),[[ms,!t.inactive]]),er(ai("div",{class:T(["table-cell",s.getAlert(t)])},O(t.available),3),[[ms,!t.inactive]])])))),128))])}]]),bg={class:"plugin",id:"sensors"},vg={key:0,class:"table-row"},yg=[ai("div",{class:"table-cell text-left title"},"SENSORS",-1)],wg={class:"table-cell text-left"},_g={class:"table-cell"};const xg={props:{data:{type:Object}},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.sensors},sensors(){return this.stats.filter((t=>!(Array.isArray(t.value)&&0===t.value.length||0===t.value))).map((t=>(this.args.fahrenheit&&"battery"!=t.type&&"fan_speed"!=t.type&&(t.value=parseFloat(1.8*t.value+32).toFixed(1),t.unit="F"),t)))}},methods:{getAlert(t){const e="battery"==t.type?100-t.value:t.value;return To.getAlert("sensors","sensors_"+t.type+"_",e)}}},kg=(0,Ua.Z)(xg,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",bg,[s.sensors.length>0?(Xr(),ei("div",vg,yg)):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.sensors,((t,e)=>(Xr(),ei("div",{class:"table-row",key:e},[ai("div",wg,O(t.label),1),ai("div",_g,O(t.unit),1),ai("div",{class:T(["table-cell",s.getAlert(t)])},O(t.value),3)])))),128))])}]]),Cg={class:"plugin",id:"system"},Sg={key:0,class:"critical"},Tg={class:"title"},Og={key:1,class:"hidden-xs hidden-sm"},Ag={key:2,class:"hidden-xs hidden-sm"};const Eg={props:{data:{type:Object}},data:()=>({store:ko}),computed:{stats(){return this.data.stats.system},isLinux(){return this.data.isLinux},hostname(){return this.stats.hostname},platform(){return this.stats.platform},os(){return{name:this.stats.os_name,version:this.stats.os_version}},humanReadableName(){return this.stats.hr_name},isDisconnected(){return"FAILURE"===this.store.status}}},Pg=(0,Ua.Z)(Eg,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Cg,[s.isDisconnected?(Xr(),ei("span",Sg,"Disconnected from")):hi("v-if",!0),ai("span",Tg,O(s.hostname),1),s.isLinux?(Xr(),ei("span",Og," ("+O(s.humanReadableName)+" / "+O(s.os.name)+" "+O(s.os.version)+") ",1)):hi("v-if",!0),s.isLinux?hi("v-if",!0):(Xr(),ei("span",Ag," ("+O(s.os.name)+" "+O(s.os.version)+" "+O(s.platform)+") ",1))])}]]),Lg={class:"plugin",id:"uptime"};const jg={props:{data:{type:Object}},computed:{value(){return this.data.stats.uptime}}},Mg=(0,Ua.Z)(jg,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Lg,[ai("span",null,"Uptime: "+O(s.value),1)])}]]),Dg={class:"plugin",id:"wifi"},Ig={key:0,class:"table-row"},Rg=[ai("div",{class:"table-cell text-left title"},"WIFI",-1),ai("div",{class:"table-cell"},null,-1),ai("div",{class:"table-cell"},"dBm",-1)],Ng={class:"table-cell text-left"},qg={key:0},Ug=ai("div",{class:"table-cell"},null,-1);const Fg={props:{data:{type:Object}},computed:{stats(){return this.data.stats.wifi},view(){return this.data.views.wifi},hotspots(){const t=this.stats.map((t=>{if(""!==t.ssid)return{ssid:t.ssid,encrypted:t.encrypted,signal:t.signal,encryption_type:t.encryption_type}})).filter(Boolean);return(0,Za.orderBy)(t,["ssid"])}},methods:{getDecoration(t,e){if(void 0!==this.view[t.ssid][e])return this.view[t.ssid][e].decoration.toLowerCase()}}},Bg={components:{GlancesHelp:Fa,GlancesPluginAlert:Xa,GlancesPluginCloud:tc,GlancesPluginConnections:kc,GlancesPluginCpu:bu,GlancesPluginDiskio:Uu,GlancesPluginDocker:rd,GlancesPluginFolders:ud,GlancesPluginFs:wd,GlancesPluginGpu:qd,GlancesPluginIp:Gd,GlancesPluginIrq:tf,GlancesPluginLoad:gf,GlancesPluginMem:Pf,GlancesPluginMemMore:Gf,GlancesPluginMemswap:lp,GlancesPluginNetwork:Sp,GlancesPluginNow:Ap,GlancesPluginPercpu:Hp,GlancesPluginPorts:nh,GlancesPluginProcess:Ih,GlancesPluginQuicklook:cg,GlancesPluginRaid:mg,GlancesPluginSensors:kg,GlancesPluginSystem:Pg,GlancesPluginUptime:Mg,GlancesPluginWifi:(0,Ua.Z)(Fg,[["render",function(t,e,n,r,i,s){return Xr(),ei("section",Dg,[s.hotspots.length>0?(Xr(),ei("div",Ig,Rg)):hi("v-if",!0),(Xr(!0),ei(Hr,null,ar(s.hotspots,((e,n)=>(Xr(),ei("div",{class:"table-row",key:n},[ai("div",Ng,[fi(O(t.$filters.limitTo(e.ssid,20))+" ",1),e.encrypted?(Xr(),ei("span",qg,O(e.encryption_type),1)):hi("v-if",!0)]),Ug,ai("div",{class:T(["table-cell",s.getDecoration(e,"signal")])},O(e.signal),3)])))),128))])}]])},data:()=>({store:ko}),computed:{args(){return this.store.args||{}},data(){return this.store.data||{}},dataLoaded(){return void 0!==this.store.data},hasGpu(){return this.store.data.stats.gpu.length>0},isLinux(){return this.store.data.isLinux},title(){const{data:t}=this,e=t.stats&&t.stats.system&&t.stats.system.hostname||"";return e?`${e} - Glances`:"Glances"}},watch:{title(){document&&(document.title=this.title)}},methods:{setupHotKeys(){yo("a",(()=>{this.store.args.sort_processes_key=null})),yo("c",(()=>{this.store.args.sort_processes_key="cpu_percent"})),yo("m",(()=>{this.store.args.sort_processes_key="memory_percent"})),yo("u",(()=>{this.store.args.sort_processes_key="username"})),yo("p",(()=>{this.store.args.sort_processes_key="name"})),yo("i",(()=>{this.store.args.sort_processes_key="io_counters"})),yo("t",(()=>{this.store.args.sort_processes_key="timemillis"})),yo("shift+A",(()=>{this.store.args.disable_amps=!this.store.args.disable_amps})),yo("d",(()=>{this.store.args.disable_diskio=!this.store.args.disable_diskio})),yo("shift+Q",(()=>{this.store.args.enable_irq=!this.store.args.enable_irq})),yo("f",(()=>{this.store.args.disable_fs=!this.store.args.disable_fs})),yo("j",(()=>{this.store.args.programs=!this.store.args.programs})),yo("k",(()=>{this.store.args.disable_connections=!this.store.args.disable_connections})),yo("n",(()=>{this.store.args.disable_network=!this.store.args.disable_network})),yo("s",(()=>{this.store.args.disable_sensors=!this.store.args.disable_sensors})),yo("2",(()=>{this.store.args.disable_left_sidebar=!this.store.args.disable_left_sidebar})),yo("z",(()=>{this.store.args.disable_process=!this.store.args.disable_process})),yo("/",(()=>{this.store.args.process_short_name=!this.store.args.process_short_name})),yo("shift+D",(()=>{this.store.args.disable_docker=!this.store.args.disable_docker})),yo("b",(()=>{this.store.args.byte=!this.store.args.byte})),yo("shift+B",(()=>{this.store.args.diskio_iops=!this.store.args.diskio_iops})),yo("l",(()=>{this.store.args.disable_alert=!this.store.args.disable_alert})),yo("1",(()=>{this.store.args.percpu=!this.store.args.percpu})),yo("h",(()=>{this.store.args.help_tag=!this.store.args.help_tag})),yo("shift+T",(()=>{this.store.args.network_sum=!this.store.args.network_sum})),yo("shift+U",(()=>{this.store.args.network_cumul=!this.store.args.network_cumul})),yo("shift+F",(()=>{this.store.args.fs_free_space=!this.store.args.fs_free_space})),yo("3",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook})),yo("6",(()=>{this.store.args.meangpu=!this.store.args.meangpu})),yo("shift+G",(()=>{this.store.args.disable_gpu=!this.store.args.disable_gpu})),yo("5",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook,this.store.args.disable_cpu=!this.store.args.disable_cpu,this.store.args.disable_mem=!this.store.args.disable_mem,this.store.args.disable_memswap=!this.store.args.disable_memswap,this.store.args.disable_load=!this.store.args.disable_load,this.store.args.disable_gpu=!this.store.args.disable_gpu})),yo("shift+I",(()=>{this.store.args.disable_ip=!this.store.args.disable_ip})),yo("shift+P",(()=>{this.store.args.disable_ports=!this.store.args.disable_ports})),yo("shift+W",(()=>{this.store.args.disable_wifi=!this.store.args.disable_wifi}))}},mounted(){const t=window.__GLANCES__||{},e=isFinite(t["refresh-time"])?parseInt(t["refresh-time"],10):void 0;Oo.init(e),this.setupHotKeys()},beforeUnmount(){yo.unbind()}};const zg=((...t)=>{const e=ws().createApp(...t);const{mount:n}=e;return e.mount=t=>{const r=_s(t);if(!r)return;const i=e._component;$(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},e})((0,Ua.Z)(Bg,[["render",function(t,e,n,r,i,s){const o=ir("glances-help"),l=ir("glances-plugin-system"),a=ir("glances-plugin-ip"),c=ir("glances-plugin-uptime"),u=ir("glances-plugin-cloud"),d=ir("glances-plugin-quicklook"),f=ir("glances-plugin-cpu"),p=ir("glances-plugin-percpu"),h=ir("glances-plugin-gpu"),g=ir("glances-plugin-mem"),m=ir("glances-plugin-mem-more"),b=ir("glances-plugin-memswap"),v=ir("glances-plugin-load"),y=ir("glances-plugin-network"),w=ir("glances-plugin-connections"),_=ir("glances-plugin-wifi"),x=ir("glances-plugin-ports"),k=ir("glances-plugin-diskio"),C=ir("glances-plugin-fs"),S=ir("glances-plugin-irq"),T=ir("glances-plugin-folders"),O=ir("glances-plugin-raid"),A=ir("glances-plugin-sensors"),E=ir("glances-plugin-docker"),P=ir("glances-plugin-process"),L=ir("glances-plugin-alert"),j=ir("glances-plugin-now");return s.dataLoaded?s.args.help_tag?(Xr(),ni(o,{key:1})):(Xr(),ei("main",Cs,[ai("div",Ss,[ai("div",Ts,[ai("div",Os,[ai("div",As,[ci(l,{data:s.data},null,8,["data"])]),s.args.disable_ip?hi("v-if",!0):(Xr(),ei("div",Es,[ci(a,{data:s.data},null,8,["data"])])),ai("div",Ps,[ci(c,{data:s.data},null,8,["data"])])])])]),ai("div",Ls,[ai("div",js,[ai("div",Ms,[ai("div",Ds,[ci(u,{data:s.data},null,8,["data"])])])]),ai("div",Is,[s.args.disable_quicklook?hi("v-if",!0):(Xr(),ei("div",Rs,[ci(d,{data:s.data},null,8,["data"])])),s.args.disable_cpu||s.args.percpu?hi("v-if",!0):(Xr(),ei("div",Ns,[ci(f,{data:s.data},null,8,["data"])])),!s.args.disable_cpu&&s.args.percpu?(Xr(),ei("div",qs,[ci(p,{data:s.data},null,8,["data"])])):hi("v-if",!0),!s.args.disable_gpu&&s.hasGpu?(Xr(),ei("div",Us,[ci(h,{data:s.data},null,8,["data"])])):hi("v-if",!0),s.args.disable_mem?hi("v-if",!0):(Xr(),ei("div",Fs,[ci(g,{data:s.data},null,8,["data"])])),hi(" NOTE: display if MEM enabled and GPU disabled "),s.args.disable_mem||!s.args.disable_gpu&&s.hasGpu?hi("v-if",!0):(Xr(),ei("div",Bs,[ci(m,{data:s.data},null,8,["data"])])),s.args.disable_memswap?hi("v-if",!0):(Xr(),ei("div",zs,[ci(b,{data:s.data},null,8,["data"])])),s.args.disable_load?hi("v-if",!0):(Xr(),ei("div",$s,[ci(v,{data:s.data},null,8,["data"])]))])]),ai("div",Hs,[ai("div",Vs,[s.args.disable_left_sidebar?hi("v-if",!0):(Xr(),ei("div",Gs,[ai("div",Ws,[s.args.disable_network?hi("v-if",!0):(Xr(),ni(y,{key:0,id:"plugin-network",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.isLinux&&!s.args.disable_connections?(Xr(),ni(w,{key:1,id:"plugin-connections",class:"plugin table-row-group",data:s.data},null,8,["data"])):hi("v-if",!0),s.args.disable_wifi?hi("v-if",!0):(Xr(),ni(_,{key:2,id:"plugin-wifi",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_ports?hi("v-if",!0):(Xr(),ni(x,{key:3,id:"plugin-ports",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_diskio?hi("v-if",!0):(Xr(),ni(k,{key:4,id:"plugin-diskio",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_fs?hi("v-if",!0):(Xr(),ni(C,{key:5,id:"plugin-fs",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.enable_irq?(Xr(),ni(S,{key:6,id:"plugin-irq",class:"plugin table-row-group",data:s.data},null,8,["data"])):hi("v-if",!0),s.args.disable_folders?hi("v-if",!0):(Xr(),ni(T,{key:7,id:"plugin-folders",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.raid?hi("v-if",!0):(Xr(),ni(O,{key:8,id:"plugin-raid",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_sensors?hi("v-if",!0):(Xr(),ni(A,{key:9,id:"plugin-sensors",class:"plugin table-row-group",data:s.data},null,8,["data"]))])])),ai("div",Zs,[s.args.disable_docker?hi("v-if",!0):(Xr(),ni(E,{key:0,data:s.data},null,8,["data"])),ci(P,{data:s.data},null,8,["data"]),s.args.disable_alert?hi("v-if",!0):(Xr(),ni(L,{key:1,data:s.data},null,8,["data"]))])])]),ai("div",Ks,[ai("div",Xs,[ai("div",Js,[ci(j,{data:s.data},null,8,["data"])])])])])):(Xr(),ei("div",xs,ks))}]]));zg.config.globalProperties.$filters=t,zg.mount("#app")})()})(); \ No newline at end of file diff --git a/glances/plugins/glances_ip.py b/glances/plugins/glances_ip.py index 6a48845241..bacbb3ce67 100644 --- a/glances/plugins/glances_ip.py +++ b/glances/plugins/glances_ip.py @@ -32,8 +32,6 @@ # - json: service return a JSON (True) or string (False) # - key: key of the IP address in the JSON structure urls = [ - # glances_ip.py plugin relies on low rating / malicious site domain #1975 - # ('https://ip.42.pl/raw', False, None), ('https://httpbin.org/ip', True, 'origin'), ('https://api.ipify.org/?format=json', True, 'ip'), ('https://ipv4.jsonip.com', True, 'ip'),