From 1b93758b6542dfa0929fcc92f2e31120a6ef72bb Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 18 Oct 2025 16:03:23 +0200 Subject: [PATCH] [UI] Process virtual memory display can be disable by configuration #3299 --- conf/glances.conf | 2 + docker-compose/glances.conf | 2 + docs/aoa/ps.rst | 12 + docs/api/python.rst | 654 +++++++++------ docs/api/restful.rst | 775 ++++++++++-------- docs/man/glances.1 | 2 +- .../js/components/plugin-processlist.vue | 12 +- glances/outputs/static/public/glances.js | 2 +- glances/plugins/plugin/model.py | 5 +- glances/plugins/processlist/__init__.py | 15 +- 10 files changed, 874 insertions(+), 607 deletions(-) diff --git a/conf/glances.conf b/conf/glances.conf index b763e811..82f28d89 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -450,6 +450,8 @@ disable=False # Stats that can be disabled: cpu_percent,memory_info,memory_percent,username,cpu_times,num_threads,nice,status,io_counters,cmdline # Stats that can not be disable: pid,name #disable_stats=cpu_percent,memory_info,memory_percent,username,cpu_times,num_threads,nice,status,io_counters,cmdline +# Disable display of virtual memory +#disable_virtual_memory=True # Define CPU/MEM (per process) thresholds in % # Default values if not defined: 50/70/90 cpu_careful=50 diff --git a/docker-compose/glances.conf b/docker-compose/glances.conf index 5bf75257..6b09a9aa 100755 --- a/docker-compose/glances.conf +++ b/docker-compose/glances.conf @@ -450,6 +450,8 @@ disable=False # Stats that can be disabled: cpu_percent,memory_info,memory_percent,username,cpu_times,num_threads,nice,status,io_counters,cmdline # Stats that can not be disable: pid,name #disable_stats=cpu_percent,memory_info,memory_percent,username,cpu_times,num_threads,nice,status,io_counters,cmdline +# Disable display of virtual memory +#disable_virtual_memory=True # Define CPU/MEM (per process) thresholds in % # Default values if not defined: 50/70/90 cpu_careful=50 diff --git a/docs/aoa/ps.rst b/docs/aoa/ps.rst index 4d491bed..e29adc7b 100644 --- a/docs/aoa/ps.rst +++ b/docs/aoa/ps.rst @@ -149,6 +149,18 @@ Columns display pressing on the ``'/'`` key ========================= ============================================== +Disable display of virtual memory +--------------------------------- + +It's possible to disable the display of the VIRT column (virtual memory) by adding the +``disable_virtual_memory=True`` option in the ``[processlist]`` section of the configuration +file (glances.conf): + +.. code-block:: ini + + [processlist] + disable_virtual_memory=True + Process filtering ----------------- diff --git a/docs/api/python.rst b/docs/api/python.rst index 2e8e3d98..82171355 100644 --- a/docs/api/python.rst +++ b/docs/api/python.rst @@ -22,25 +22,25 @@ use the following code: >>> gl = api.GlancesAPI() >>> gl.cpu {'cpucore': 16, - 'ctx_switches': 491013279, + 'ctx_switches': 251879111, 'guest': 0.0, - 'idle': 93.6, - 'interrupts': 385504474, + 'idle': 93.8, + 'interrupts': 185450645, 'iowait': 0.3, 'irq': 0.0, 'nice': 0.0, - 'soft_interrupts': 165012202, + 'soft_interrupts': 67942543, 'steal': 0.0, 'syscalls': 0, - 'system': 4.2, + 'system': 4.3, 'total': 7.0, - 'user': 1.8} + 'user': 1.5} >>> gl.cpu["total"] 7.0 >>> gl.mem["used"] - 10396827600 + 11333548672 >>> gl.auto_unit(gl.mem["used"]) - 9.68G + 10.6G If the stats return a list of items (like network interfaces or processes), you can access them by their name: @@ -51,19 +51,19 @@ access them by their name: ['wlp0s20f3'] >>> gl.network["wlp0s20f3"] {'alias': None, - 'bytes_all': 108, - 'bytes_all_gauge': 6466060147, - 'bytes_all_rate_per_sec': 492.0, - 'bytes_recv': 108, - 'bytes_recv_gauge': 5613794659, - 'bytes_recv_rate_per_sec': 492.0, - 'bytes_sent': 0, - 'bytes_sent_gauge': 852265488, - 'bytes_sent_rate_per_sec': 0.0, + 'bytes_all': 1429, + 'bytes_all_gauge': 1862956708, + 'bytes_all_rate_per_sec': 9769.0, + 'bytes_recv': 1071, + 'bytes_recv_gauge': 1542173134, + 'bytes_recv_rate_per_sec': 7321.0, + 'bytes_sent': 358, + 'bytes_sent_gauge': 320783574, + 'bytes_sent_rate_per_sec': 2447.0, 'interface_name': 'wlp0s20f3', 'key': 'interface_name', 'speed': 0, - 'time_since_update': 0.21945619583129883} + 'time_since_update': 0.14627695083618164} Init Glances Python API ----------------------- @@ -95,7 +95,19 @@ Alert stats: >>> type(gl.alert) >>> gl.alert - [] + [{'avg': 89.33400090599146, + 'begin': 1760796163, + 'count': 2, + 'desc': '', + 'end': -1, + 'global_msg': 'High swap (paging) usage', + 'max': 89.33400090599146, + 'min': 89.33400090599146, + 'sort': 'memory_percent', + 'state': 'WARNING', + 'sum': 178.66800181198292, + 'top': [], + 'type': 'MEMSWAP'}] Alert fields description: @@ -170,14 +182,14 @@ Diskio stats: >>> gl.diskio["nvme0n1"] {'disk_name': 'nvme0n1', 'key': 'disk_name', - 'read_bytes': 29718333440, - 'read_count': 1847247, + 'read_bytes': 10737252864, + 'read_count': 540774, 'read_latency': 0, - 'read_time': 454086, - 'write_bytes': 56026629120, - 'write_count': 4686433, + 'read_time': 156541, + 'write_bytes': 20509295616, + 'write_count': 1846020, 'write_latency': 0, - 'write_time': 3830836} + 'write_time': 1396204} Diskio fields description: @@ -260,11 +272,11 @@ Processcount stats: >>> type(gl.processcount) >>> gl.processcount - {'pid_max': 0, 'running': 1, 'sleeping': 427, 'thread': 2449, 'total': 576} + {'pid_max': 0, 'running': 2, 'sleeping': 424, 'thread': 2350, 'total': 573} >>> gl.processcount.keys() ['total', 'running', 'sleeping', 'thread', 'pid_max'] >>> gl.processcount["total"] - 576 + 573 Processcount fields description: @@ -337,7 +349,7 @@ Percpu stats: 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 44.0, + 'idle': 23.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -345,9 +357,9 @@ Percpu stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 9.0, - 'total': 56.0, - 'user': 0.0} + 'system': 6.0, + 'total': 77.0, + 'user': 1.0} Percpu fields description: @@ -395,10 +407,10 @@ System stats: >>> gl.system {'hostname': 'nicolargo-xps15', - 'hr_name': 'Ubuntu 24.04 64bit / Linux 6.14.0-27-generic', + 'hr_name': 'Ubuntu 24.04 64bit / Linux 6.14.0-33-generic', 'linux_distro': 'Ubuntu 24.04', 'os_name': 'Linux', - 'os_version': '6.14.0-27-generic', + 'os_version': '6.14.0-33-generic', 'platform': '64bit'} >>> gl.system.keys() ['os_name', 'hostname', 'platform', 'os_version', 'linux_distro', 'hr_name'] @@ -437,18 +449,18 @@ Network stats: >>> gl.network["wlp0s20f3"] {'alias': None, 'bytes_all': 0, - 'bytes_all_gauge': 6466060147, + 'bytes_all_gauge': 1862956708, 'bytes_all_rate_per_sec': 0.0, 'bytes_recv': 0, - 'bytes_recv_gauge': 5613794659, + 'bytes_recv_gauge': 1542173134, 'bytes_recv_rate_per_sec': 0.0, 'bytes_sent': 0, - 'bytes_sent_gauge': 852265488, + 'bytes_sent_gauge': 320783574, 'bytes_sent_rate_per_sec': 0.0, 'interface_name': 'wlp0s20f3', 'key': 'interface_name', 'speed': 0, - 'time_since_update': 0.002429962158203125} + 'time_since_update': 0.002686023712158203} Network fields description: @@ -489,19 +501,19 @@ Cpu stats: >>> gl.cpu {'cpucore': 16, - 'ctx_switches': 491013279, + 'ctx_switches': 251879111, 'guest': 0.0, - 'idle': 93.6, - 'interrupts': 385504474, + 'idle': 93.8, + 'interrupts': 185450645, 'iowait': 0.3, 'irq': 0.0, 'nice': 0.0, - 'soft_interrupts': 165012202, + 'soft_interrupts': 67942543, 'steal': 0.0, 'syscalls': 0, - 'system': 4.2, + 'system': 4.3, 'total': 7.0, - 'user': 1.8} + 'user': 1.5} >>> gl.cpu.keys() ['total', 'user', 'nice', 'system', 'idle', 'iowait', 'irq', 'steal', 'guest', 'ctx_switches', 'interrupts', 'soft_interrupts', 'syscalls', 'cpucore'] >>> gl.cpu["total"] @@ -577,7 +589,7 @@ Amps stats: 'refresh': 3.0, 'regex': True, 'result': None, - 'timer': 0.3190271854400635} + 'timer': 0.18155479431152344} Amps fields description: @@ -608,37 +620,173 @@ Processlist stats: >>> gl.processlist Return a dict of dict with key= >>> gl.processlist.keys() - [859351, 128, 838809, 5042, 792775, 10450, 3458, 762381, 730251, 734631, 734889, 732110, 734969, 730090, 734983, 736663, 736179, 736337, 731541, 736548, 734997, 736463, 734976, 732297, 734928, 840336, 839500, 729946, 754855, 829573, 5638, 730280, 689526, 830296, 732139, 446626, 731399, 730128, 730281, 730491, 734899, 522855, 731637, 831128, 730886, 731830, 858053, 858832, 857292, 730062, 6009, 176529, 6048, 729949, 770848, 736, 758804, 735673, 729948, 859315, 734874, 730940, 5268, 4747, 5478, 2547, 5632, 5175, 734869, 5410, 10322, 6021, 39324, 5534, 5664, 730943, 5188, 5205, 5210, 5695, 730944, 5372, 2884, 2627, 1, 694407, 4996, 5167, 6043, 709959, 5253, 2538, 5202, 4741, 4894, 4745, 5197, 2569, 2564, 4725, 5426, 2532, 5618, 5198, 2945, 5318, 694404, 2879, 2407, 5217, 4705, 5233, 3560, 6183, 2844, 176467, 4749, 3513, 5193, 2630, 5597, 78967, 191125, 191134, 5438, 5245, 732333, 2560, 4985, 2743, 5199, 5238, 2535, 4817, 759105, 2746, 3461, 5484, 4760, 2413, 2529, 5547, 4993, 2550, 5043, 5468, 2561, 5371, 5279, 5382, 5148, 2406, 5929, 5450, 772, 5195, 5493, 4966, 2554, 5459, 770853, 5222, 4879, 4821, 503622, 5228, 5176, 859366, 830820, 4971, 23472, 2542, 23457, 23487, 5057, 14541, 4742, 2527, 205527, 669999, 5857, 2652, 730827, 198795, 323705, 730621, 6051, 670000, 3621, 199673, 2553, 23490, 859311, 199690, 729975, 4731, 734722, 3480, 323703, 4828, 3466, 848203, 662515, 199683, 859314, 669672, 669665, 3089, 199678, 2622, 670022, 3090, 2, 3, 4, 5, 6, 7, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 47, 48, 49, 50, 51, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 89, 90, 91, 92, 93, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 113, 114, 115, 116, 117, 118, 121, 122, 123, 124, 125, 126, 127, 132, 134, 135, 136, 137, 138, 140, 141, 142, 143, 144, 145, 146, 147, 150, 151, 153, 154, 155, 165, 178, 187, 188, 214, 247, 251, 265, 266, 267, 268, 269, 270, 276, 278, 279, 280, 350, 352, 355, 356, 357, 358, 359, 443, 445, 607, 612, 613, 614, 620, 677, 678, 796, 961, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 1064, 1065, 1128, 1170, 1219, 1342, 1346, 1347, 1348, 1349, 1406, 1410, 1449, 1457, 1862, 1863, 1864, 1865, 1866, 1867, 1868, 1869, 1870, 1871, 1872, 1873, 1874, 1875, 1903, 1905, 1906, 1907, 1908, 1909, 1910, 1911, 1912, 1913, 1914, 1916, 1917, 1943, 1944, 1945, 1946, 1947, 1948, 1949, 1950, 1951, 1952, 1953, 1954, 1955, 1956, 1957, 1958, 1959, 1960, 1961, 1962, 1963, 1964, 1965, 1966, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 2007, 2008, 2009, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, 2029, 2030, 2031, 2032, 2034, 2039, 2040, 3828, 23469, 199473, 199474, 202936, 203588, 323712, 323713, 323714, 323715, 323716, 323717, 323718, 323719, 747322, 772052, 811800, 818221, 821531, 825450, 829250, 829251, 830353, 830662, 830666, 830675, 830688, 830690, 830702, 830704, 836262, 836840, 837475, 838776, 838927, 840558, 840784, 842217, 843064, 844092, 845739, 847775, 848563, 848573, 848724, 849923, 850425, 852755, 852767, 852916, 852920, 853501, 853991, 854081, 854777, 855415, 855523, 855646, 856396, 856411, 857548, 857560, 858033, 858034, 858107, 858108, 858109, 858110, 858131, 858302, 858436, 858621, 858973] - >>> gl.processlist["859351"] - {'cmdline': ['/home/nicolargo/dev/glances/.venv/bin/python3', - '-m', - 'glances', - '-C', - 'conf/glances.conf', - '--api-doc'], - 'cpu_percent': 79.7, - 'cpu_times': {'children_system': 0.02, - 'children_user': 0.0, + [46570, 47457, 46487, 6783, 7632, 11142, 7104, 8313, 48198, 224888, 8118, 7111, 7118, 226940, 5654, 7132, 224887, 42374, 48129, 7057, 2987, 22094, 46584, 46337, 224889, 6041, 46525, 224994, 224928, 46585, 48104, 47545, 46906, 80672, 172509, 46930, 172527, 61459, 307821, 47127, 306949, 306491, 307346, 7067, 18544, 46408, 6237, 206293, 3476, 6069, 6612, 5857, 46340, 6652, 7043, 307818, 46339, 9513, 7853, 6225, 5770, 2639, 47125, 47124, 172504, 172529, 5990, 7038, 732, 6126, 6624, 8666, 47126, 5762, 2990, 5782, 5808, 6285, 6253, 2993, 5811, 5950, 6647, 2719, 3475, 1, 5789, 5589, 2655, 5836, 5800, 2653, 2652, 3051, 5245, 5421, 2620, 6013, 5265, 5794, 2493, 5830, 6211, 2627, 5267, 5214, 3503, 5813, 6512, 5885, 7197, 2647, 2974, 234055, 9878, 2720, 2953, 5268, 5833, 3556, 5262, 5784, 20420, 6192, 20411, 6023, 2838, 5795, 2642, 2648, 2841, 5335, 794, 2623, 6076, 5575, 6060, 5631, 2492, 5832, 5871, 2616, 6035, 2494, 5281, 3487, 5740, 6142, 6046, 5961, 5066, 2645, 5786, 5560, 5947, 6085, 5586, 5821, 5339, 5826, 5404, 2634, 6438, 307847, 61469, 6153, 2615, 5561, 14301, 11442, 14320, 5067, 5263, 170427, 2791, 5646, 14326, 2614, 2491, 3670, 47062, 6654, 2619, 2873, 6877, 14329, 307812, 2874, 3526, 3489, 3500, 46354, 5252, 5346, 223933, 3495, 3191, 307817, 3490, 2875, 2982, 2984, 2718, 3192, 5071, 46895, 2, 3, 4, 5, 6, 7, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 47, 48, 49, 50, 51, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 89, 90, 91, 92, 93, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 113, 114, 115, 116, 117, 118, 121, 122, 123, 124, 125, 126, 127, 128, 134, 135, 136, 137, 138, 139, 140, 142, 145, 146, 147, 148, 149, 150, 152, 155, 156, 157, 158, 165, 176, 185, 186, 211, 233, 262, 263, 264, 265, 271, 274, 275, 276, 277, 278, 279, 356, 359, 361, 362, 363, 364, 365, 452, 453, 616, 621, 622, 623, 629, 664, 665, 766, 767, 801, 977, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1039, 1240, 1241, 1256, 1266, 1267, 1268, 1269, 1270, 1271, 1331, 1334, 1475, 1481, 1892, 1893, 1894, 1895, 1896, 1897, 1898, 1899, 1900, 1901, 1902, 1903, 1904, 1905, 1934, 1935, 1936, 1938, 1939, 1940, 1941, 1943, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2066, 2068, 3390, 3522, 3603, 3604, 3605, 3606, 3607, 3608, 3609, 3610, 3948, 5125, 5134, 14316, 88766, 88767, 88768, 88769, 144695, 170360, 196369, 196886, 197213, 197218, 198026, 198763, 205933, 206230, 206670, 206671, 210706, 212599, 213167, 214705, 215449, 216560, 218284, 218540, 220856, 221035, 223573, 223808, 223896, 224703, 224704, 224706, 224707, 225326, 226090, 226709, 226866, 227094, 227132, 232609, 242457, 256300, 256693, 256885, 257266, 277569, 277570, 290497, 290764, 291297, 295506, 295683, 303685, 304332, 304372, 305645, 306046, 306619, 306620, 306863, 307209] + >>> gl.processlist["46570"] + {'cmdline': ['/proc/self/exe', + '--type=utility', + '--utility-sub-type=node.mojom.NodeService', + '--lang=en-US', + '--service-sandbox-type=none', + '--no-sandbox', + '--dns-result-order=ipv4first', + '--experimental-network-inspection', + '--inspect-port=0', + '--crashpad-handler-pid=46354', + '--enable-crash-reporter=864d4bb7-dd20-4851-830f-29e81dd93517,no_channel', + '--user-data-dir=/home/nicolargo/.config/Code', + '--standard-schemes=vscode-webview,vscode-file', + '--secure-schemes=vscode-webview,vscode-file', + '--cors-schemes=vscode-webview,vscode-file', + '--fetch-schemes=vscode-webview,vscode-file', + '--service-worker-schemes=vscode-webview', + '--code-cache-schemes=vscode-webview,vscode-file', + '--shared-files=v8_context_snapshot_data:100', + '--field-trial-handle=3,i,4986926590589059729,4531114910489201425,262144', + '--enable-features=DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync', + '--disable-features=CalculateNativeWinOcclusion,FontationsLinuxSystemFonts,ScreenAIOCREnabled,SpareRendererForSitePerProcess', + '--variations-seed-version'], + 'cpu_percent': 2.7, + 'cpu_times': {'children_system': 1240.63, + 'children_user': 922.42, 'iowait': 0.0, - 'system': 0.63, - 'user': 0.63}, + 'system': 479.6, + 'user': 1798.85}, 'gids': {'effective': 1000, 'real': 1000, 'saved': 1000}, - 'io_counters': [0, 8192, 0, 8192, 1, 0, 0, 0, 0, 0], + 'io_counters': [1869545472, + 507817984, + 1869545472, + 507817984, + 1, + 136281088, + 2068480, + 136281088, + 2068480, + 1, + 72811520, + 172032, + 72811520, + 172032, + 1, + 158062592, + 0, + 158062592, + 0, + 1, + 7445504, + 8192, + 7445504, + 8192, + 1, + 5080064, + 8192, + 5080064, + 8192, + 1, + 27717632, + 0, + 27717632, + 0, + 1, + 139708416, + 983928832, + 139708416, + 983928832, + 1, + 122919936, + 59772928, + 122919936, + 59772928, + 1, + 5210112, + 0, + 5210112, + 0, + 1, + 12508160, + 0, + 12508160, + 0, + 1, + 5293056, + 0, + 5293056, + 0, + 1, + 56825856, + 8904704, + 56825856, + 8904704, + 1, + 39286784, + 0, + 39286784, + 0, + 1, + 15904768, + 0, + 15904768, + 0, + 1, + 11419648, + 0, + 11419648, + 0, + 1, + 5070848, + 0, + 5070848, + 0, + 1, + 204800, + 0, + 204800, + 0, + 1, + 472064, + 0, + 472064, + 0, + 1, + 2265088, + 0, + 2265088, + 0, + 1, + 344064, + 0, + 344064, + 0, + 1, + 18805760, + 6782976, + 18805760, + 6782976, + 1, + 34198528, + 339968, + 34198528, + 339968, + 1, + 1135616, + 0, + 1135616, + 0, + 1], 'key': 'pid', - 'memory_info': {'data': 122466304, + 'memory_info': {'data': 4997742592, 'dirty': 0, 'lib': 0, - 'rss': 79343616, - 'shared': 17973248, - 'text': 4096, - 'vms': 567312384}, - 'memory_percent': 0.48312865648033626, - 'name': 'python3', + 'rss': 2393518080, + 'shared': 96464896, + 'text': 148733952, + 'vms': 1528151814144}, + 'memory_percent': 14.574297479230525, + 'name': 'code', 'nice': 0, - 'num_threads': 5, - 'pid': 859351, - 'status': 'R', - 'time_since_update': 0.6350650787353516, + 'num_threads': 79, + 'pid': 46570, + 'status': 'S', + 'time_since_update': 0.3913853168487549, 'username': 'nicolargo'} Processlist fields description: @@ -723,13 +871,13 @@ Load stats: >>> gl.load {'cpucore': 16, - 'min1': 1.1396484375, - 'min15': 0.8759765625, - 'min5': 1.00830078125} + 'min1': 1.97119140625, + 'min15': 2.24560546875, + 'min5': 2.28759765625} >>> gl.load.keys() ['min1', 'min5', 'min15', 'cpucore'] >>> gl.load["min1"] - 1.1396484375 + 1.97119140625 Load fields description: @@ -768,7 +916,7 @@ Sensors stats: 'label': 'Ambient', 'type': 'temperature_core', 'unit': 'C', - 'value': 36, + 'value': 40, 'warning': 0} Sensors fields description: @@ -806,7 +954,7 @@ Uptime stats: >>> type(gl.uptime) >>> gl.uptime - '20 days, 22:18:23' + '5 days, 21:09:23' Uptime limits: @@ -825,11 +973,11 @@ Now stats: >>> type(gl.now) >>> gl.now - {'custom': '2025-10-12 14:56:02 CEST', 'iso': '2025-10-12T14:56:02+02:00'} + {'custom': '2025-10-18 16:02:44 CEST', 'iso': '2025-10-18T16:02:44+02:00'} >>> gl.now.keys() ['iso', 'custom'] >>> gl.now["iso"] - '2025-10-12T14:56:02+02:00' + '2025-10-18T16:02:44+02:00' Now fields description: @@ -858,14 +1006,14 @@ Fs stats: ['/', '/zsfpool'] >>> gl.fs["/"] {'device_name': '/dev/mapper/ubuntu--vg-ubuntu--lv', - 'free': 711318290432, + 'free': 714728280064, 'fs_type': 'ext4', 'key': 'mnt_point', 'mnt_point': '/', 'options': 'rw,relatime', - 'percent': 25.3, + 'percent': 25.0, 'size': 1003736440832, - 'used': 241355644928} + 'used': 237945655296} Fs fields description: @@ -905,8 +1053,8 @@ Wifi stats: ['wlp0s20f3'] >>> gl.wifi["wlp0s20f3"] {'key': 'ssid', - 'quality_level': -69.0, - 'quality_link': 41.0, + 'quality_level': -67.0, + 'quality_link': 43.0, 'ssid': 'wlp0s20f3'} Wifi limits: @@ -972,7 +1120,7 @@ Version stats: >>> type(gl.version) >>> gl.version - '4.4.0_dev6' + '4.4.0_dev7' Version limits: @@ -1038,20 +1186,20 @@ Mem stats: >>> type(gl.mem) >>> gl.mem - {'active': 6030843904, - 'available': 6026047536, - 'buffers': 400662528, - 'cached': 5590743472, - 'free': 675258368, - 'inactive': 7137554432, - 'percent': 63.3, - 'shared': 1255473152, - 'total': 16422875136, - 'used': 10396827600} + {'active': 6737354752, + 'available': 5089322368, + 'buffers': 216350720, + 'cached': 3604672128, + 'free': 1952030720, + 'inactive': 5932859392, + 'percent': 69.0, + 'shared': 950054912, + 'total': 16422871040, + 'used': 11333548672} >>> gl.mem.keys() ['total', 'available', 'percent', 'used', 'free', 'active', 'inactive', 'buffers', 'cached', 'shared'] >>> gl.mem["total"] - 16422875136 + 16422871040 Mem fields description: @@ -1119,17 +1267,17 @@ Quicklook stats: >>> gl.quicklook {'cpu': 7.0, 'cpu_hz': 4475000000.0, - 'cpu_hz_current': 659375749.9999999, + 'cpu_hz_current': 739985437.5, 'cpu_log_core': 16, 'cpu_name': '13th Gen Intel(R) Core(TM) i7-13620H', 'cpu_phys_core': 10, - 'load': 5.5, - 'mem': 63.306988051132926, + 'load': 14.0, + 'mem': 69.01076337015431, 'percpu': [{'cpu_number': 0, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 44.0, + 'idle': 23.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1137,134 +1285,29 @@ Quicklook stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 9.0, - 'total': 56.0, - 'user': 0.0}, - {'cpu_number': 1, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 55.0, - 'interrupt': None, - 'iowait': 0.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 0.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 1.0, - 'total': 45.0, - 'user': 0.0}, - {'cpu_number': 2, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 55.0, - 'interrupt': None, - 'iowait': 0.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 0.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 0.0, - 'total': 45.0, - 'user': 0.0}, - {'cpu_number': 3, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 56.0, - 'interrupt': None, - 'iowait': 0.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 0.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 0.0, - 'total': 44.0, - 'user': 0.0}, - {'cpu_number': 4, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 51.0, - 'interrupt': None, - 'iowait': 0.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 0.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 4.0, - 'total': 49.0, + 'system': 6.0, + 'total': 77.0, 'user': 1.0}, - {'cpu_number': 5, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 56.0, - 'interrupt': None, - 'iowait': 0.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 0.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 0.0, - 'total': 44.0, - 'user': 0.0}, - {'cpu_number': 6, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 41.0, - 'interrupt': None, - 'iowait': 0.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 0.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 9.0, - 'total': 59.0, - 'user': 4.0}, - {'cpu_number': 7, + {'cpu_number': 1, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, 'idle': 31.0, 'interrupt': None, - 'iowait': 2.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 0.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 14.0, - 'total': 69.0, - 'user': 9.0}, - {'cpu_number': 8, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 55.0, - 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, 'key': 'cpu_number', 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 1.0, - 'total': 45.0, + 'system': 0.0, + 'total': 69.0, 'user': 0.0}, - {'cpu_number': 9, + {'cpu_number': 2, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 56.0, + 'idle': 30.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1273,13 +1316,28 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 44.0, - 'user': 1.0}, - {'cpu_number': 10, + 'total': 70.0, + 'user': 0.0}, + {'cpu_number': 3, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 52.0, + 'idle': 31.0, + 'interrupt': None, + 'iowait': 0.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 0.0, + 'steal': 0.0, + 'system': 1.0, + 'total': 69.0, + 'user': 0.0}, + {'cpu_number': 4, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 16.0, 'interrupt': None, 'iowait': 1.0, 'irq': 0.0, @@ -1287,14 +1345,44 @@ Quicklook stats: 'nice': 0.0, 'softirq': 0.0, 'steal': 0.0, - 'system': 3.0, - 'total': 48.0, - 'user': 1.0}, - {'cpu_number': 11, + 'system': 9.0, + 'total': 84.0, + 'user': 6.0}, + {'cpu_number': 5, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 57.0, + 'idle': 28.0, + 'interrupt': None, + 'iowait': 0.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 0.0, + 'steal': 0.0, + 'system': 3.0, + 'total': 72.0, + 'user': 0.0}, + {'cpu_number': 6, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 26.0, + 'interrupt': None, + 'iowait': 0.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 0.0, + 'steal': 0.0, + 'system': 3.0, + 'total': 74.0, + 'user': 1.0}, + {'cpu_number': 7, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 31.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1303,13 +1391,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 0.0, - 'total': 43.0, + 'total': 69.0, 'user': 0.0}, - {'cpu_number': 12, + {'cpu_number': 8, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 55.0, + 'idle': 31.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1318,13 +1406,88 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 1.0, - 'total': 45.0, + 'total': 69.0, + 'user': 0.0}, + {'cpu_number': 9, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 32.0, + 'interrupt': None, + 'iowait': 0.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 0.0, + 'steal': 0.0, + 'system': 0.0, + 'total': 68.0, + 'user': 0.0}, + {'cpu_number': 10, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 31.0, + 'interrupt': None, + 'iowait': 0.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 0.0, + 'steal': 0.0, + 'system': 0.0, + 'total': 69.0, + 'user': 0.0}, + {'cpu_number': 11, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 31.0, + 'interrupt': None, + 'iowait': 0.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 0.0, + 'steal': 0.0, + 'system': 0.0, + 'total': 69.0, + 'user': 0.0}, + {'cpu_number': 12, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 30.0, + 'interrupt': None, + 'iowait': 0.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 0.0, + 'steal': 0.0, + 'system': 0.0, + 'total': 70.0, 'user': 0.0}, {'cpu_number': 13, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 55.0, + 'idle': 29.0, + 'interrupt': None, + 'iowait': 1.0, + 'irq': 0.0, + 'key': 'cpu_number', + 'nice': 0.0, + 'softirq': 0.0, + 'steal': 0.0, + 'system': 0.0, + 'total': 71.0, + 'user': 0.0}, + {'cpu_number': 14, + 'dpc': None, + 'guest': 0.0, + 'guest_nice': 0.0, + 'idle': 30.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1333,28 +1496,13 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 2.0, - 'total': 45.0, - 'user': 1.0}, - {'cpu_number': 14, - 'dpc': None, - 'guest': 0.0, - 'guest_nice': 0.0, - 'idle': 56.0, - 'interrupt': None, - 'iowait': 0.0, - 'irq': 0.0, - 'key': 'cpu_number', - 'nice': 0.0, - 'softirq': 0.0, - 'steal': 0.0, - 'system': 0.0, - 'total': 44.0, + 'total': 70.0, 'user': 0.0}, {'cpu_number': 15, 'dpc': None, 'guest': 0.0, 'guest_nice': 0.0, - 'idle': 56.0, + 'idle': 31.0, 'interrupt': None, 'iowait': 0.0, 'irq': 0.0, @@ -1363,9 +1511,9 @@ Quicklook stats: 'softirq': 0.0, 'steal': 0.0, 'system': 1.0, - 'total': 44.0, + 'total': 69.0, 'user': 0.0}], - 'swap': 65.2} + 'swap': 89.3} >>> gl.quicklook.keys() ['cpu_name', 'cpu_hz_current', 'cpu_hz', 'cpu', 'percpu', 'mem', 'swap', 'cpu_log_core', 'cpu_phys_core', 'load'] >>> gl.quicklook["cpu_name"] @@ -1415,13 +1563,13 @@ Memswap stats: >>> type(gl.memswap) >>> gl.memswap - {'free': 1494384640, - 'percent': 65.2, - 'sin': 2782363648, - 'sout': 9290919936, - 'time_since_update': 0.5927832126617432, + {'free': 458100736, + 'percent': 89.3, + 'sin': 725831680, + 'sout': 4446822400, + 'time_since_update': 0.3501102924346924, 'total': 4294963200, - 'used': 2800578560} + 'used': 3836862464} >>> gl.memswap.keys() ['total', 'used', 'free', 'percent', 'sin', 'sout', 'time_since_update'] >>> gl.memswap["total"] @@ -1456,10 +1604,10 @@ Use auto_unit() function to generate a human-readable string with the unit: .. code-block:: python >>> gl.mem["used"] - 10396827600 + 11333548672 >>> gl.auto_unit(gl.mem["used"]) - 9.68G + 10.6G Args: @@ -1485,7 +1633,7 @@ Use bar() function to generate a bar: .. code-block:: python >>> gl.bar(gl.mem["percent"]) - ■■■■■■■■■■■□□□□□□□ + ■■■■■■■■■■■■□□□□□□ Args: @@ -1515,7 +1663,7 @@ Use top_process() function to generate a list of top processes sorted by CPU or .. code-block:: python >>> gl.top_process() - [{'cpu_times': {'user': 4.07, 'system': 1.16, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'pid': 838809, 'status': 'S', 'memory_info': {'rss': 269946880, 'vms': 2784251904, 'shared': 107171840, 'text': 663552, 'lib': 0, 'data': 230789120, 'dirty': 0}, 'nice': 0, 'name': 'Isolated Web Co', 'io_counters': [172032, 0, 172032, 0, 1, 81920, 0, 81920, 0, 1, 8806400, 0, 8806400, 0, 1, 4246528, 0, 4246528, 0, 1, 1088512, 0, 1088512, 0, 1, 1126400, 0, 1126400, 0, 1, 663552, 0, 663552, 0, 1, 619520, 0, 619520, 0, 1, 3891200, 65536, 3891200, 65536, 1, 332800, 0, 332800, 0, 1, 4704256, 0, 4704256, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 'cpu_percent': 1.7, 'num_threads': 28, 'memory_percent': 1.6437248518577543, 'key': 'pid', 'time_since_update': 0.6350650787353516, 'cmdline': ['/snap/firefox/6966/usr/lib/firefox/firefox', '-contentproc', '-isForBrowser', '-prefsHandle', '0:46242', '-prefMapHandle', '1:276800', '-jsInitHandle', '2:223368', '-parentBuildID', '20251003234612', '-sandboxReporter', '3', '-chrootClient', '4', '-ipcHandle', '5', '-initialChannelId', '{a2f2603e-552f-4b7e-bb5d-0a099fc2e115}', '-parentPid', '734631', '-crashReporter', '6', '-crashHelper', '7', '-greomni', '/snap/firefox/6966/usr/lib/firefox/omni.ja', '-appomni', '/snap/firefox/6966/usr/lib/firefox/browser/omni.ja', '-appDir', '/snap/firefox/6966/usr/lib/firefox/browser', '333', 'tab'], 'username': 'nicolargo'}, {'cpu_times': {'user': 3615.72, 'system': 1844.76, 'children_user': 4825.78, 'children_system': 1316.57, 'iowait': 0.0}, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'pid': 5042, 'status': 'S', 'memory_info': {'rss': 316145664, 'vms': 6075207680, 'shared': 101490688, 'text': 8192, 'lib': 0, 'data': 552787968, 'dirty': 0}, 'nice': 0, 'name': 'gnome-shell', 'io_counters': [2497851392, 10700926976, 2497851392, 10700926976, 1], 'cpu_percent': 1.6, 'num_threads': 40, 'memory_percent': 1.9250323794217272, 'key': 'pid', 'time_since_update': 0.6350650787353516, 'cmdline': ['/usr/bin/gnome-shell'], 'username': 'nicolargo'}, {'cpu_times': {'user': 49.12, 'system': 6.55, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'pid': 792775, 'status': 'S', 'memory_info': {'rss': 291532800, 'vms': 2818543616, 'shared': 101773312, 'text': 663552, 'lib': 0, 'data': 272609280, 'dirty': 0}, 'nice': 0, 'name': 'Isolated Web Co', 'io_counters': [81920, 0, 81920, 0, 1], 'cpu_percent': 1.6, 'num_threads': 29, 'memory_percent': 1.775162982034378, 'key': 'pid', 'time_since_update': 0.6350650787353516, 'cmdline': ['/snap/firefox/6966/usr/lib/firefox/firefox', '-contentproc', '-isForBrowser', '-prefsHandle', '0:46177', '-prefMapHandle', '1:276800', '-jsInitHandle', '2:223368', '-parentBuildID', '20251003234612', '-sandboxReporter', '3', '-chrootClient', '4', '-ipcHandle', '5', '-initialChannelId', '{42f542fe-7ca6-432f-a0f9-e692d1780ed9}', '-parentPid', '734631', '-crashReporter', '6', '-crashHelper', '7', '-greomni', '/snap/firefox/6966/usr/lib/firefox/omni.ja', '-appomni', '/snap/firefox/6966/usr/lib/firefox/browser/omni.ja', '-appDir', '/snap/firefox/6966/usr/lib/firefox/browser', '236', 'tab'], 'username': 'nicolargo'}] + [{'pid': 46570, 'name': 'code', 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'cpu_times': {'user': 1798.85, 'system': 479.6, 'children_user': 922.42, 'children_system': 1240.63, 'iowait': 0.0}, 'cpu_percent': 2.7, 'nice': 0, 'memory_percent': 14.574297479230525, 'num_threads': 79, 'io_counters': [1869545472, 507817984, 1869545472, 507817984, 1, 136281088, 2068480, 136281088, 2068480, 1, 72811520, 172032, 72811520, 172032, 1, 158062592, 0, 158062592, 0, 1, 7445504, 8192, 7445504, 8192, 1, 5080064, 8192, 5080064, 8192, 1, 27717632, 0, 27717632, 0, 1, 139708416, 983928832, 139708416, 983928832, 1, 122919936, 59772928, 122919936, 59772928, 1, 5210112, 0, 5210112, 0, 1, 12508160, 0, 12508160, 0, 1, 5293056, 0, 5293056, 0, 1, 56825856, 8904704, 56825856, 8904704, 1, 39286784, 0, 39286784, 0, 1, 15904768, 0, 15904768, 0, 1, 11419648, 0, 11419648, 0, 1, 5070848, 0, 5070848, 0, 1, 204800, 0, 204800, 0, 1, 472064, 0, 472064, 0, 1, 2265088, 0, 2265088, 0, 1, 344064, 0, 344064, 0, 1, 18805760, 6782976, 18805760, 6782976, 1, 34198528, 339968, 34198528, 339968, 1, 1135616, 0, 1135616, 0, 1], 'status': 'S', 'memory_info': {'rss': 2393518080, 'vms': 1528151814144, 'shared': 96464896, 'text': 148733952, 'lib': 0, 'data': 4997742592, 'dirty': 0}, 'key': 'pid', 'time_since_update': 0.3913853168487549, 'cmdline': ['/proc/self/exe', '--type=utility', '--utility-sub-type=node.mojom.NodeService', '--lang=en-US', '--service-sandbox-type=none', '--no-sandbox', '--dns-result-order=ipv4first', '--experimental-network-inspection', '--inspect-port=0', '--crashpad-handler-pid=46354', '--enable-crash-reporter=864d4bb7-dd20-4851-830f-29e81dd93517,no_channel', '--user-data-dir=/home/nicolargo/.config/Code', '--standard-schemes=vscode-webview,vscode-file', '--secure-schemes=vscode-webview,vscode-file', '--cors-schemes=vscode-webview,vscode-file', '--fetch-schemes=vscode-webview,vscode-file', '--service-worker-schemes=vscode-webview', '--code-cache-schemes=vscode-webview,vscode-file', '--shared-files=v8_context_snapshot_data:100', '--field-trial-handle=3,i,4986926590589059729,4531114910489201425,262144', '--enable-features=DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync', '--disable-features=CalculateNativeWinOcclusion,FontationsLinuxSystemFonts,ScreenAIOCREnabled,SpareRendererForSitePerProcess', '--variations-seed-version'], 'username': 'nicolargo'}, {'pid': 7632, 'name': 'WebExtensions', 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'cpu_times': {'user': 924.66, 'system': 120.38, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'cpu_percent': 2.7, 'nice': 0, 'memory_percent': 4.273211804992655, 'num_threads': 28, 'io_counters': [119829504, 0, 119829504, 0, 1], 'status': 'S', 'memory_info': {'rss': 701784064, 'vms': 29612236800, 'shared': 112488448, 'text': 663552, 'lib': 0, 'data': 1063751680, 'dirty': 0}, 'key': 'pid', 'time_since_update': 0.3913853168487549, 'cmdline': ['/snap/firefox/6966/usr/lib/firefox/firefox', '-contentproc', '-isForBrowser', '-prefsHandle', '0:50613', '-prefMapHandle', '1:276800', '-jsInitHandle', '2:223368', '-parentBuildID', '20251003234612', '-sandboxReporter', '3', '-chrootClient', '4', '-ipcHandle', '5', '-initialChannelId', '{45977768-1c03-434f-981a-497bfc5e227f}', '-parentPid', '6783', '-crashReporter', '6', '-crashHelper', '7', '-greomni', '/snap/firefox/6966/usr/lib/firefox/omni.ja', '-appomni', '/snap/firefox/6966/usr/lib/firefox/browser/omni.ja', '-appDir', '/snap/firefox/6966/usr/lib/firefox/browser', '9', 'tab'], 'username': 'nicolargo'}, {'pid': 7132, 'name': 'Isolated Web Co', 'gids': {'real': 1000, 'effective': 1000, 'saved': 1000}, 'cpu_times': {'user': 88.49, 'system': 19.75, 'children_user': 0.0, 'children_system': 0.0, 'iowait': 0.0}, 'cpu_percent': 2.7, 'nice': 0, 'memory_percent': 1.3679545278825986, 'num_threads': 32, 'io_counters': [3644416, 131072, 3644416, 131072, 1], 'status': 'S', 'memory_info': {'rss': 224657408, 'vms': 2994450432, 'shared': 114974720, 'text': 663552, 'lib': 0, 'data': 392105984, 'dirty': 0}, 'key': 'pid', 'time_since_update': 0.3913853168487549, 'cmdline': ['/snap/firefox/6966/usr/lib/firefox/firefox', '-contentproc', '-isForBrowser', '-prefsHandle', '0:35148', '-prefMapHandle', '1:276800', '-jsInitHandle', '2:223368', '-parentBuildID', '20251003234612', '-sandboxReporter', '3', '-chrootClient', '4', '-ipcHandle', '5', '-initialChannelId', '{93496df8-d327-4656-b74e-04f5ad60083c}', '-parentPid', '6783', '-crashReporter', '6', '-crashHelper', '7', '-greomni', '/snap/firefox/6966/usr/lib/firefox/omni.ja', '-appomni', '/snap/firefox/6966/usr/lib/firefox/browser/omni.ja', '-appDir', '/snap/firefox/6966/usr/lib/firefox/browser', '8', 'tab'], 'username': 'nicolargo'}] Args: diff --git a/docs/api/restful.rst b/docs/api/restful.rst index 6e11e208..bfa06e34 100644 --- a/docs/api/restful.rst +++ b/docs/api/restful.rst @@ -160,7 +160,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.5542335510253906}, + "timer": 0.299152135848999}, {"count": 0, "countmax": 20.0, "countmin": None, @@ -169,7 +169,7 @@ Get plugin stats:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.5541338920593262}] + "timer": 0.29909658432006836}] Fields descriptions: @@ -197,7 +197,7 @@ Get a specific item when field matches the given value:: "refresh": 3.0, "regex": True, "result": None, - "timer": 0.5542335510253906}]} + "timer": 0.299152135848999}]} GET cloud --------- @@ -286,19 +286,19 @@ Get plugin stats:: # curl http://localhost:61208/api/4/cpu {"cpucore": 16, - "ctx_switches": 491046713, + "ctx_switches": 251892699, "guest": 0.0, - "idle": 92.6, - "interrupts": 385529628, + "idle": 93.6, + "interrupts": 185460608, "iowait": 0.2, "irq": 0.0, "nice": 0.0, - "soft_interrupts": 165024051, + "soft_interrupts": 67948698, "steal": 0.0, "syscalls": 0, - "system": 3.2, - "total": 7.2, - "user": 4.0} + "system": 3.1, + "total": 5.8, + "user": 3.1} Fields descriptions: @@ -331,7 +331,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/cpu/total - {"total": 7.2} + {"total": 5.8} GET diskio ---------- @@ -341,24 +341,24 @@ Get plugin stats:: # curl http://localhost:61208/api/4/diskio [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 29719668736, - "read_count": 1847471, + "read_bytes": 10737306112, + "read_count": 540787, "read_latency": 0, - "read_time": 454194, - "write_bytes": 56103674880, - "write_count": 4689935, + "read_time": 156617, + "write_bytes": 20509676544, + "write_count": 1846043, "write_latency": 0, - "write_time": 3833316}, + "write_time": 1396205}, {"disk_name": "nvme0n1p1", "key": "disk_name", - "read_bytes": 26292736, - "read_count": 4044, + "read_bytes": 7402496, + "read_count": 1476, "read_latency": 0, - "read_time": 8185, - "write_bytes": 5120, - "write_count": 3, + "read_time": 6641, + "write_bytes": 1024, + "write_count": 2, "write_latency": 0, - "write_time": 0}] + "write_time": 9}] Fields descriptions: @@ -400,14 +400,14 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/diskio/disk_name/value/nvme0n1 {"nvme0n1": [{"disk_name": "nvme0n1", "key": "disk_name", - "read_bytes": 29719668736, - "read_count": 1847471, + "read_bytes": 10737306112, + "read_count": 540787, "read_latency": 0, - "read_time": 454194, - "write_bytes": 56103674880, - "write_count": 4689935, + "read_time": 156617, + "write_bytes": 20509676544, + "write_count": 1846043, "write_latency": 0, - "write_time": 3833316}]} + "write_time": 1396205}]} GET folders ----------- @@ -434,14 +434,14 @@ Get plugin stats:: # curl http://localhost:61208/api/4/fs [{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv", - "free": 711318315008, + "free": 714727280640, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "options": "rw,relatime", - "percent": 25.3, + "percent": 25.0, "size": 1003736440832, - "used": 241355620352}, + "used": 237946654720}, {"device_name": "zsfpool", "free": 41680896, "fs_type": "zfs", @@ -472,14 +472,14 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/fs/mnt_point/value// {"/": [{"device_name": "/dev/mapper/ubuntu--vg-ubuntu--lv", - "free": 711318315008, + "free": 714727280640, "fs_type": "ext4", "key": "mnt_point", "mnt_point": "/", "options": "rw,relatime", - "percent": 25.3, + "percent": 25.0, "size": 1003736440832, - "used": 241355620352}]} + "used": 237946654720}]} GET gpu ------- @@ -551,7 +551,10 @@ GET load Get plugin stats:: # curl http://localhost:61208/api/4/load - {"cpucore": 16, "min1": 1.12841796875, "min15": 0.876953125, "min5": 1.0078125} + {"cpucore": 16, + "min1": 1.97119140625, + "min15": 2.24560546875, + "min5": 2.28759765625} Fields descriptions: @@ -563,7 +566,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/load/min1 - {"min1": 1.12841796875} + {"min1": 1.97119140625} GET mem ------- @@ -571,16 +574,16 @@ GET mem Get plugin stats:: # curl http://localhost:61208/api/4/mem - {"active": 6014619648, - "available": 6024843312, - "buffers": 400711680, - "cached": 5597186480, - "free": 673689600, - "inactive": 7137681408, - "percent": 63.3, - "shared": 1261830144, - "total": 16422875136, - "used": 10398031824} + {"active": 6718914560, + "available": 5117179264, + "buffers": 216354816, + "cached": 3583454848, + "free": 1978671104, + "inactive": 5934075904, + "percent": 68.8, + "shared": 927756288, + "total": 16422871040, + "used": 11305691776} Fields descriptions: @@ -599,7 +602,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/mem/total - {"total": 16422875136} + {"total": 16422871040} GET memswap ----------- @@ -607,13 +610,13 @@ GET memswap Get plugin stats:: # curl http://localhost:61208/api/4/memswap - {"free": 1495089152, - "percent": 65.2, - "sin": 2783612928, - "sout": 9290919936, + {"free": 458145792, + "percent": 89.3, + "sin": 725880832, + "sout": 4446822400, "time_since_update": 1, "total": 4294963200, - "used": 2799874048} + "used": 3836817408} Fields descriptions: @@ -638,18 +641,18 @@ Get plugin stats:: # curl http://localhost:61208/api/4/network [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 6466207851, + "bytes_all_gauge": 1862979918, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, - "bytes_recv_gauge": 5613824083, + "bytes_recv_gauge": 1542177664, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 852383768, + "bytes_sent_gauge": 320802254, "bytes_sent_rate_per_sec": 0, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.5574243068695068}] + "time_since_update": 0.3006448745727539}] Fields descriptions: @@ -678,18 +681,18 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/network/interface_name/value/wlp0s20f3 {"wlp0s20f3": [{"alias": None, "bytes_all": 0, - "bytes_all_gauge": 6466207851, + "bytes_all_gauge": 1862979918, "bytes_all_rate_per_sec": 0, "bytes_recv": 0, - "bytes_recv_gauge": 5613824083, + "bytes_recv_gauge": 1542177664, "bytes_recv_rate_per_sec": 0, "bytes_sent": 0, - "bytes_sent_gauge": 852383768, + "bytes_sent_gauge": 320802254, "bytes_sent_rate_per_sec": 0, "interface_name": "wlp0s20f3", "key": "interface_name", "speed": 0, - "time_since_update": 0.5574243068695068}]} + "time_since_update": 0.3006448745727539}]} GET now ------- @@ -697,7 +700,7 @@ GET now Get plugin stats:: # curl http://localhost:61208/api/4/now - {"custom": "2025-10-12 14:56:08 CEST", "iso": "2025-10-12T14:56:08+02:00"} + {"custom": "2025-10-18 16:02:46 CEST", "iso": "2025-10-18T16:02:46+02:00"} Fields descriptions: @@ -707,7 +710,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/now/iso - {"iso": "2025-10-12T14:56:08+02:00"} + {"iso": "2025-10-18T16:02:46+02:00"} GET percpu ---------- @@ -719,7 +722,7 @@ Get plugin stats:: "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 43.0, + "idle": 22.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -727,14 +730,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 11.0, - "total": 57.0, + "system": 8.0, + "total": 78.0, "user": 0.0}, {"cpu_number": 1, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 55.0, + "idle": 29.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -743,7 +746,7 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 45.0, + "total": 71.0, "user": 0.0}] Fields descriptions: @@ -793,7 +796,7 @@ GET processcount Get plugin stats:: # curl http://localhost:61208/api/4/processcount - {"pid_max": 0, "running": 1, "sleeping": 427, "thread": 2390, "total": 579} + {"pid_max": 0, "running": 1, "sleeping": 424, "thread": 2354, "total": 573} Fields descriptions: @@ -806,7 +809,7 @@ Fields descriptions: Get a specific field:: # curl http://localhost:61208/api/4/processcount/total - {"total": 579} + {"total": 573} GET processlist --------------- @@ -823,7 +826,7 @@ Get plugin stats:: "--dns-result-order=ipv4first", "--experimental-network-inspection", "--inspect-port=0", - "--crashpad-handler-pid=729975", + "--crashpad-handler-pid=46354", "--enable-crash-reporter=864d4bb7-dd20-4851-830f-29e81dd93517,no_channel", "--user-data-dir=/home/nicolargo/.config/Code", "--standard-schemes=vscode-webview,vscode-file", @@ -833,135 +836,179 @@ Get plugin stats:: "--service-worker-schemes=vscode-webview", "--code-cache-schemes=vscode-webview,vscode-file", "--shared-files=v8_context_snapshot_data:100", - "--field-trial-handle=3,i,5575711365373836623,5036351258737193960,262144", + "--field-trial-handle=3,i,4986926590589059729,4531114910489201425,262144", "--enable-features=DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync", "--disable-features=CalculateNativeWinOcclusion,FontationsLinuxSystemFonts,ScreenAIOCREnabled,SpareRendererForSitePerProcess", "--variations-seed-version"], "cpu_percent": 0.0, - "cpu_times": {"children_system": 209.75, - "children_user": 127.66, + "cpu_times": {"children_system": 1240.65, + "children_user": 922.43, "iowait": 0.0, - "system": 234.92, - "user": 625.14}, + "system": 479.64, + "user": 1798.9}, "gids": {"effective": 1000, "real": 1000, "saved": 1000}, - "io_counters": [981892096, - 472748032, + "io_counters": [1869545472, + 508829696, 0, 0, 0, - 35402752, - 266240, + 136281088, + 2068480, 0, 0, 0, - 54398976, + 72811520, + 172032, + 0, + 0, + 0, + 158062592, 0, 0, 0, 0, - 77978624, + 7445504, + 8192, + 0, + 0, + 0, + 5080064, + 8192, + 0, + 0, + 0, + 27717632, 0, 0, 0, 0, - 59550720, - 66973696, + 122919936, + 59772928, 0, 0, 0, - 48890880, - 2020933632, + 139708416, + 983928832, 0, 0, 0, - 15224832, + 5210112, 0, 0, 0, 0, - 4172800, + 5293056, 0, 0, 0, 0, - 80714752, + 56825856, + 8904704, + 0, + 0, + 0, + 12508160, 0, 0, 0, 0, - 1106944, - 4096, - 0, - 0, - 0, - 6320128, + 39286784, 0, 0, 0, 0, - 1454080, + 15904768, 0, 0, 0, 0, - 389120, + 11419648, 0, 0, 0, 0, - 5675008, - 6238208, + 5070848, 0, 0, 0, - 3303424, - 36864, + 0, + 204800, 0, 0, 0, - 1014784, + 0, + 472064, + 0, + 0, + 0, + 0, + 2265088, + 0, + 0, + 0, + 0, + 344064, + 0, + 0, + 0, + 0, + 18805760, + 6782976, + 0, + 0, + 0, + 34198528, + 339968, + 0, + 0, + 0, + 1135616, 0, 0, 0, 0], "key": "pid", - "memory_info": {"data": 3742982144, + "memory_info": {"data": 5001117696, "dirty": 0, "lib": 0, - "rss": 1678188544, - "shared": 102649856, + "rss": 2395750400, + "shared": 96464896, "text": 148733952, - "vms": 1526380396544}, - "memory_percent": 10.218603807815006, + "vms": 1528151814144}, + "memory_percent": 14.587890230428307, "name": "code", "nice": 0, - "num_threads": 63, - "pid": 730251, + "num_threads": 79, + "pid": 46570, "status": "S", "time_since_update": 1, "username": "nicolargo"}, - {"cmdline": ["/snap/firefox/6966/usr/lib/firefox/firefox"], + {"cmdline": ["/snap/code/210/usr/share/code/code", + "/home/nicolargo/.vscode/extensions/ms-python.vscode-pylance-2025.8.3/dist/server.bundle.js", + "--cancellationReceive=file:67b33a7d7a7e65d5cd8f4f9b416c02a75b802b6ba8", + "--node-ipc", + "--clientProcessId=46570"], "cpu_percent": 0.0, - "cpu_times": {"children_system": 0.4, - "children_user": 0.07, + "cpu_times": {"children_system": 1.04, + "children_user": 1.92, "iowait": 0.0, - "system": 277.15, - "user": 899.56}, + "system": 26.59, + "user": 408.89}, "gids": {"effective": 1000, "real": 1000, "saved": 1000}, - "io_counters": [742511616, 2085257216, 0, 0, 0], + "io_counters": [136281088, 2068480, 0, 0, 0], "key": "pid", - "memory_info": {"data": 1307631616, + "memory_info": {"data": 2027880448, "dirty": 0, "lib": 0, - "rss": 706588672, - "shared": 228593664, - "text": 663552, - "vms": 30919229440}, - "memory_percent": 4.302466323032026, - "name": "firefox", + "rss": 911159296, + "shared": 73961472, + "text": 148733952, + "vms": 1501606551552}, + "memory_percent": 5.548112104033182, + "name": "code", "nice": 0, - "num_threads": 179, - "pid": 734631, + "num_threads": 16, + "pid": 47457, "status": "S", "time_since_update": 1, "username": "nicolargo"}] @@ -988,143 +1035,191 @@ GET programlist Get plugin stats:: # curl http://localhost:61208/api/4/programlist - [{"childrens": [730251, - 730090, - 731541, - 732297, - 729946, - 730280, - 732139, - 730128, - 730281, - 730491, - 731637, - 730886, - 731830, - 730062, - 729949, - 729948], + [{"childrens": [46570, + 47457, + 46487, + 48198, + 224888, + 224887, + 48129, + 46337, + 46584, + 224889, + 224994, + 224928, + 46525, + 46585, + 48104, + 47545, + 46906, + 80672, + 172509, + 46930, + 172527, + 46408, + 46340, + 46339], "cmdline": ["code"], "cpu_percent": 0, - "cpu_times": {"children_system": 211.51, - "children_user": 140.47999999999996, - "system": 423.25000000000006, - "user": 1999.1399999999999}, - "io_counters": [981892096, - 472748032, + "cpu_times": {"children_system": 1244.4499999999998, + "children_user": 936.8599999999999, + "system": 776.4100000000001, + "user": 4510.38}, + "io_counters": [1869545472, + 508829696, 0, 0, 0, - 35402752, - 266240, + 136281088, + 2068480, 0, 0, 0, - 54398976, + 72811520, + 172032, + 0, + 0, + 0, + 158062592, 0, 0, 0, 0, - 77978624, + 7445504, + 8192, + 0, + 0, + 0, + 5080064, + 8192, + 0, + 0, + 0, + 27717632, 0, 0, 0, 0, - 59550720, - 66973696, + 122919936, + 59772928, 0, 0, 0, - 48890880, - 2020933632, + 139708416, + 983928832, 0, 0, 0, - 15224832, + 5210112, 0, 0, 0, 0, - 4172800, + 5293056, 0, 0, 0, 0, - 80714752, + 56825856, + 8904704, + 0, + 0, + 0, + 12508160, 0, 0, 0, 0, - 1106944, - 4096, - 0, - 0, - 0, - 6320128, + 39286784, 0, 0, 0, 0, - 1454080, + 15904768, 0, 0, 0, 0, - 389120, + 11419648, 0, 0, 0, 0, - 5675008, - 6238208, + 5070848, 0, 0, 0, - 3303424, - 36864, + 0, + 204800, 0, 0, 0, - 1014784, + 0, + 472064, + 0, + 0, + 0, + 0, + 2265088, + 0, + 0, + 0, + 0, + 344064, + 0, + 0, + 0, + 0, + 18805760, + 6782976, + 0, + 0, + 0, + 34198528, + 339968, + 0, + 0, + 0, + 1135616, 0, 0, 0, 0], - "memory_info": {"data": 14201491456, - "rss": 3883216896, - "shared": 1273004032, - "text": 2379743232, - "vms": 18143394435072}, - "memory_percent": 23.645170920697915, + "memory_info": {"data": 22297677824, + "rss": 6942371840, + "shared": 1801408512, + "text": 3569614848, + "vms": 30101700988928}, + "memory_percent": 42.27258329612994, "name": "code", "nice": 0, - "nprocs": 16, - "num_threads": 291, + "nprocs": 24, + "num_threads": 387, "pid": "_", "status": "S", "time_since_update": 1, "username": "nicolargo"}, - {"childrens": [734631], + {"childrens": [6783], "cmdline": ["firefox"], "cpu_percent": 0, - "cpu_times": {"children_system": 0.4, - "children_user": 0.07, + "cpu_times": {"children_system": 0.8, + "children_user": 0.1, "iowait": 0.0, - "system": 277.15, - "user": 899.56}, - "io_counters": [742511616, 2085257216, 0, 0, 0], - "memory_info": {"data": 1307631616, + "system": 906.63, + "user": 3557.19}, + "io_counters": [1370045440, 5760217088, 0, 0, 0], + "memory_info": {"data": 2136752128, "dirty": 0, "lib": 0, - "rss": 706588672, - "shared": 228593664, + "rss": 723595264, + "shared": 226918400, "text": 663552, - "vms": 30919229440}, - "memory_percent": 4.302466323032026, + "vms": 31638888448}, + "memory_percent": 4.4060217134847575, "name": "firefox", "nice": 0, "nprocs": 1, - "num_threads": 179, + "num_threads": 249, "pid": "_", "status": "S", "time_since_update": 1, @@ -1160,19 +1255,19 @@ GET quicklook Get plugin stats:: # curl http://localhost:61208/api/4/quicklook - {"cpu": 7.2, + {"cpu": 5.8, "cpu_hz": 4475000000.0, - "cpu_hz_current": 534650437.49999994, + "cpu_hz_current": 959201875.0000001, "cpu_log_core": 16, "cpu_name": "13th Gen Intel(R) Core(TM) i7-13620H", "cpu_phys_core": 10, - "load": 5.5, - "mem": 63.31432065270255, + "load": 14.0, + "mem": 68.8411407997027, "percpu": [{"cpu_number": 0, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 43.0, + "idle": 22.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1180,14 +1275,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 11.0, - "total": 57.0, + "system": 8.0, + "total": 78.0, "user": 0.0}, {"cpu_number": 1, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 55.0, + "idle": 29.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1196,69 +1291,24 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 45.0, + "total": 71.0, "user": 0.0}, {"cpu_number": 2, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 49.0, + "idle": 29.0, "interrupt": None, - "iowait": 1.0, + "iowait": 0.0, "irq": 0.0, "key": "cpu_number", "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 2.0, - "total": 51.0, - "user": 3.0}, + "system": 1.0, + "total": 71.0, + "user": 0.0}, {"cpu_number": 3, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 56.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 0.0, - "total": 44.0, - "user": 0.0}, - {"cpu_number": 4, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 35.0, - "interrupt": None, - "iowait": 1.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 13.0, - "total": 65.0, - "user": 4.0}, - {"cpu_number": 5, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 55.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 0.0, - "total": 45.0, - "user": 0.0}, - {"cpu_number": 6, "dpc": None, "guest": 0.0, "guest_nice": 0.0, @@ -1270,14 +1320,59 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 11.0, + "system": 0.0, "total": 70.0, - "user": 12.0}, + "user": 0.0}, + {"cpu_number": 4, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 26.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 3.0, + "total": 74.0, + "user": 1.0}, + {"cpu_number": 5, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 29.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 0.0, + "total": 71.0, + "user": 0.0}, + {"cpu_number": 6, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 17.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 7.0, + "total": 83.0, + "user": 4.0}, {"cpu_number": 7, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 56.0, + "idle": 25.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1285,29 +1380,14 @@ Get plugin stats:: "nice": 0.0, "softirq": 0.0, "steal": 0.0, - "system": 0.0, - "total": 44.0, - "user": 0.0}, + "system": 2.0, + "total": 75.0, + "user": 1.0}, {"cpu_number": 8, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 54.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 1.0, - "total": 46.0, - "user": 1.0}, - {"cpu_number": 9, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 55.0, + "idle": 28.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1316,13 +1396,28 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 45.0, + "total": 72.0, + "user": 0.0}, + {"cpu_number": 9, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 29.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 0.0, + "total": 71.0, "user": 0.0}, {"cpu_number": 10, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 54.0, + "idle": 29.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1331,13 +1426,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 1.0, - "total": 46.0, + "total": 71.0, "user": 1.0}, {"cpu_number": 11, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 55.0, + "idle": 29.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1346,43 +1441,13 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 45.0, + "total": 71.0, "user": 0.0}, {"cpu_number": 12, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 54.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 1.0, - "total": 46.0, - "user": 1.0}, - {"cpu_number": 13, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 53.0, - "interrupt": None, - "iowait": 0.0, - "irq": 0.0, - "key": "cpu_number", - "nice": 0.0, - "softirq": 0.0, - "steal": 0.0, - "system": 1.0, - "total": 47.0, - "user": 0.0}, - {"cpu_number": 14, - "dpc": None, - "guest": 0.0, - "guest_nice": 0.0, - "idle": 54.0, + "idle": 29.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1391,13 +1456,28 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 0.0, - "total": 46.0, - "user": 2.0}, - {"cpu_number": 15, + "total": 71.0, + "user": 0.0}, + {"cpu_number": 13, "dpc": None, "guest": 0.0, "guest_nice": 0.0, - "idle": 54.0, + "idle": 29.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 0.0, + "total": 71.0, + "user": 0.0}, + {"cpu_number": 14, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 29.0, "interrupt": None, "iowait": 0.0, "irq": 0.0, @@ -1406,9 +1486,24 @@ Get plugin stats:: "softirq": 0.0, "steal": 0.0, "system": 1.0, - "total": 46.0, - "user": 1.0}], - "swap": 65.2} + "total": 71.0, + "user": 0.0}, + {"cpu_number": 15, + "dpc": None, + "guest": 0.0, + "guest_nice": 0.0, + "idle": 29.0, + "interrupt": None, + "iowait": 0.0, + "irq": 0.0, + "key": "cpu_number", + "nice": 0.0, + "softirq": 0.0, + "steal": 0.0, + "system": 0.0, + "total": 71.0, + "user": 0.0}], + "swap": 89.3} Fields descriptions: @@ -1446,7 +1541,7 @@ Get plugin stats:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 36, + "value": 40, "warning": 0}, {"critical": None, "key": "label", @@ -1517,7 +1612,7 @@ Get a specific item when field matches the given value:: "label": "Ambient", "type": "temperature_core", "unit": "C", - "value": 36, + "value": 40, "warning": 0}]} GET smart @@ -1535,10 +1630,10 @@ Get plugin stats:: # curl http://localhost:61208/api/4/system {"hostname": "nicolargo-xps15", - "hr_name": "Ubuntu 24.04 64bit / Linux 6.14.0-27-generic", + "hr_name": "Ubuntu 24.04 64bit / Linux 6.14.0-33-generic", "linux_distro": "Ubuntu 24.04", "os_name": "Linux", - "os_version": "6.14.0-27-generic", + "os_version": "6.14.0-33-generic", "platform": "64bit"} Fields descriptions: @@ -1561,7 +1656,7 @@ GET uptime Get plugin stats:: # curl http://localhost:61208/api/4/uptime - "20 days, 22:18:29" + "5 days, 21:09:25" GET version ----------- @@ -1569,7 +1664,7 @@ GET version Get plugin stats:: # curl http://localhost:61208/api/4/version - "4.4.0_dev6" + "4.4.0_dev7" GET vms ------- @@ -1606,8 +1701,8 @@ Get plugin stats:: # curl http://localhost:61208/api/4/wifi [{"key": "ssid", - "quality_level": -68.0, - "quality_link": 42.0, + "quality_level": -66.0, + "quality_link": 44.0, "ssid": "wlp0s20f3"}] Get a specific field:: @@ -1619,8 +1714,8 @@ Get a specific item when field matches the given value:: # curl http://localhost:61208/api/4/wifi/ssid/value/wlp0s20f3 {"wlp0s20f3": [{"key": "ssid", - "quality_level": -68.0, - "quality_link": 42.0, + "quality_level": -66.0, + "quality_link": 44.0, "ssid": "wlp0s20f3"}]} GET all stats @@ -1684,34 +1779,34 @@ GET stats history History of a plugin:: # curl http://localhost:61208/api/4/cpu/history - {"system": [["2025-10-12T12:56:09.966533+00:00", 3.2], - ["2025-10-12T12:56:11.073076+00:00", 1.0], - ["2025-10-12T12:56:12.125223+00:00", 1.0]], - "user": [["2025-10-12T12:56:09.966531+00:00", 4.0], - ["2025-10-12T12:56:11.073073+00:00", 1.0], - ["2025-10-12T12:56:12.125220+00:00", 1.0]]} + {"system": [["2025-10-18T14:02:48.020228+00:00", 3.1], + ["2025-10-18T14:02:49.074782+00:00", 0.7], + ["2025-10-18T14:02:50.108237+00:00", 0.7]], + "user": [["2025-10-18T14:02:48.020227+00:00", 3.1], + ["2025-10-18T14:02:49.074780+00:00", 0.6], + ["2025-10-18T14:02:50.108235+00:00", 0.6]]} Limit history to last 2 values:: # curl http://localhost:61208/api/4/cpu/history/2 - {"system": [["2025-10-12T12:56:11.073076+00:00", 1.0], - ["2025-10-12T12:56:12.125223+00:00", 1.0]], - "user": [["2025-10-12T12:56:11.073073+00:00", 1.0], - ["2025-10-12T12:56:12.125220+00:00", 1.0]]} + {"system": [["2025-10-18T14:02:49.074782+00:00", 0.7], + ["2025-10-18T14:02:50.108237+00:00", 0.7]], + "user": [["2025-10-18T14:02:49.074780+00:00", 0.6], + ["2025-10-18T14:02:50.108235+00:00", 0.6]]} History for a specific field:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2025-10-12T12:56:08.691252+00:00", 3.2], - ["2025-10-12T12:56:09.966533+00:00", 3.2], - ["2025-10-12T12:56:11.073076+00:00", 1.0], - ["2025-10-12T12:56:12.125223+00:00", 1.0]]} + {"system": [["2025-10-18T14:02:46.850809+00:00", 3.1], + ["2025-10-18T14:02:48.020228+00:00", 3.1], + ["2025-10-18T14:02:49.074782+00:00", 0.7], + ["2025-10-18T14:02:50.108237+00:00", 0.7]]} Limit history for a specific field to last 2 values:: # curl http://localhost:61208/api/4/cpu/system/history - {"system": [["2025-10-12T12:56:11.073076+00:00", 1.0], - ["2025-10-12T12:56:12.125223+00:00", 1.0]]} + {"system": [["2025-10-18T14:02:49.074782+00:00", 0.7], + ["2025-10-18T14:02:50.108237+00:00", 0.7]]} GET limits (used for thresholds) -------------------------------- diff --git a/docs/man/glances.1 b/docs/man/glances.1 index eabd4657..6af90f91 100644 --- a/docs/man/glances.1 +++ b/docs/man/glances.1 @@ -28,7 +28,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" "Oct 12, 2025" "4.4.0_dev6" "Glances" +.TH "GLANCES" "1" "Oct 18, 2025" "4.4.0_dev7" "Glances" .SH NAME glances \- An eye on your system .SH SYNOPSIS diff --git a/glances/outputs/static/js/components/plugin-processlist.vue b/glances/outputs/static/js/components/plugin-processlist.vue index 34476ec8..60ed505d 100644 --- a/glances/outputs/static/js/components/plugin-processlist.vue +++ b/glances/outputs/static/js/components/plugin-processlist.vue @@ -11,7 +11,7 @@
CPU Min/Max/Mean: {{ $filters.number(extended_stats.cpu_min, 1) - }}% / {{ + }}% / {{ $filters.number(extended_stats.cpu_max, 1) }}% / {{ $filters.number(extended_stats.cpu_mean, 1) }}% Affinity: @@ -101,7 +101,7 @@ @click="$emit('update:sorter', 'memory_percent')"> MEM% - + VIRT @@ -158,7 +158,7 @@ :class="getMemoryPercentAlert(process)"> {{ process.memory_percent == -1 ? '?' : $filters.number(process.memory_percent, 1) }} - + {{ $filters.bytes(process.memvirt) }} @@ -331,7 +331,7 @@ :class="getMemoryPercentAlert(process)"> {{ process.memory_percent == -1 ? '?' : $filters.number(process.memory_percent, 1) }} - + {{ $filters.bytes(process.memvirt) }} @@ -595,6 +595,10 @@ export default { getDisableStats() { return GlancesHelper.getLimit('processlist', 'processlist_disable_stats') || []; }, + getDisableVms() { + const ret = GlancesHelper.getLimit('processlist', 'processlist_disable_virtual_memory') || ['False']; + return (ret[0].toLowerCase() === 'true') ? true : false; + }, setExtendedStats(pid) { fetch('api/4/processes/extended/' + pid.toString(), { method: 'POST' }) .then((response) => response.json()); diff --git a/glances/outputs/static/public/glances.js b/glances/outputs/static/public/glances.js index 1e77aeba..9a9e7814 100644 --- a/glances/outputs/static/public/glances.js +++ b/glances/outputs/static/public/glances.js @@ -53,4 +53,4 @@ let pp;const dp="undefined"!=typeof window&&window.trustedTypes;if(dp)try{pp=dp. * Licensed under the MIT license */ -const fd="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function hd(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),r)}function gd(t,e,r,n){t.removeEventListener?t.removeEventListener(e,r,n):t.detachEvent&&t.detachEvent("on".concat(e),r)}function bd(t,e){const r=e.slice(0,e.length-1);for(let e=0;e=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}const vd={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,"-":fd?173:189,"=":fd?61:187,";":fd?59:186,"'":222,"[":219,"]":221,"\\":220},xd={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},wd={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_d={16:!1,18:!1,17:!1,91:!1},kd={};for(let t=1;t<20;t++)vd["f".concat(t)]=111+t;let Sd=[],Ad=null,Ed="all";const Cd=new Map,Td=t=>vd[t.toLowerCase()]||xd[t.toLowerCase()]||t.toUpperCase().charCodeAt(0);function Od(t){Ed=t||"all"}function Dd(){return Ed||"all"}function Id(t){if(void 0===t)Object.keys(kd).forEach((t=>{Array.isArray(kd[t])&&kd[t].forEach((t=>Pd(t))),delete kd[t]})),Md(null);else if(Array.isArray(t))t.forEach((t=>{t.key&&Pd(t)}));else if("object"==typeof t)t.key&&Pd(t);else if("string"==typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n{let{key:e,scope:r,method:n,splitKey:i="+"}=t;yd(e).forEach((t=>{const e=t.split(i),o=e.length,s=e[o-1],a="*"===s?"*":Td(s);if(!kd[a])return;r||(r=Dd());const l=o>1?bd(xd,e):[],c=[];kd[a]=kd[a].filter((t=>{const e=(!n||t.method===n)&&t.scope===r&&function(t,e){const r=t.length>=e.length?t:e,n=t.length>=e.length?e:t;let i=!0;for(let t=0;tMd(t)))}))};function jd(t,e,r,n){if(e.element!==n)return;let i;if(e.scope===r||"all"===e.scope){i=e.mods.length>0;for(const t in _d)Object.prototype.hasOwnProperty.call(_d,t)&&(!_d[t]&&e.mods.indexOf(+t)>-1||_d[t]&&-1===e.mods.indexOf(+t))&&(i=!1);(0!==e.mods.length||_d[16]||_d[18]||_d[17]||_d[91])&&!i&&"*"!==e.shortcut||(e.keys=[],e.keys=e.keys.concat(Sd),!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0)))}}function Nd(t,e){const r=kd["*"];let n=t.keyCode||t.which||t.charCode;if(!Ld.filter.call(this,t))return;if(93!==n&&224!==n||(n=91),-1===Sd.indexOf(n)&&229!==n&&Sd.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach((e=>{const r=wd[e];t[e]&&-1===Sd.indexOf(r)?Sd.push(r):!t[e]&&Sd.indexOf(r)>-1?Sd.splice(Sd.indexOf(r),1):"metaKey"===e&&t[e]&&(Sd=Sd.filter((t=>t in wd||t===n)))})),n in _d){_d[n]=!0;for(const t in xd)xd[t]===n&&(Ld[t]=!0);if(!r)return}for(const e in _d)Object.prototype.hasOwnProperty.call(_d,e)&&(_d[e]=t[wd[e]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===Sd.indexOf(17)&&Sd.push(17),-1===Sd.indexOf(18)&&Sd.push(18),_d[17]=!0,_d[18]=!0);const i=Dd();if(r)for(let n=0;n1&&(i=bd(xd,t)),(t="*"===(t=t[t.length-1])?"*":Td(t))in kd||(kd[t]=[]),kd[t].push({keyup:l,keydown:c,scope:o,mods:i,shortcut:n[a],method:r,key:n[a],splitKey:u,element:s});if(void 0!==s&&window){if(!Cd.has(s)){const t=function(){return Nd(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,s)},e=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event;Nd(t,s),function(t){let e=t.keyCode||t.which||t.charCode;const r=Sd.indexOf(e);if(r>=0&&Sd.splice(r,1),t.key&&"meta"===t.key.toLowerCase()&&Sd.splice(0,Sd.length),93!==e&&224!==e||(e=91),e in _d){_d[e]=!1;for(const t in xd)xd[t]===e&&(Ld[t]=!1)}}(t)};Cd.set(s,{keydownListener:t,keyupListenr:e,capture:p}),hd(s,"keydown",t,p),hd(s,"keyup",e,p)}if(!Ad){const t=()=>{Sd=[]};Ad={listener:t,capture:p},hd(window,"focus",t,p)}}}function Md(t){const e=Object.values(kd).flat();if(e.findIndex((e=>{let{element:r}=e;return r===t}))<0){const{keydownListener:e,keyupListenr:r,capture:n}=Cd.get(t)||{};e&&r&&(gd(t,"keyup",r,n),gd(t,"keydown",e,n),Cd.delete(t))}if(e.length<=0||Cd.size<=0){if(Object.keys(Cd).forEach((t=>{const{keydownListener:e,keyupListenr:r,capture:n}=Cd.get(t)||{};e&&r&&(gd(t,"keyup",r,n),gd(t,"keydown",e,n),Cd.delete(t))})),Cd.clear(),Object.keys(kd).forEach((t=>delete kd[t])),Ad){const{listener:t,capture:e}=Ad;gd(window,"focus",t,e),Ad=null}}}const Rd={getPressedKeyString:function(){return Sd.map((t=>{return e=t,Object.keys(vd).find((t=>vd[t]===e))||(t=>Object.keys(xd).find((e=>xd[e]===t)))(t)||String.fromCharCode(t);var e}))},setScope:Od,getScope:Dd,deleteScope:function(t,e){let r,n;t||(t=Dd());for(const e in kd)if(Object.prototype.hasOwnProperty.call(kd,e))for(r=kd[e],n=0;n{let{element:e}=t;return Md(e)}))}else n++;Dd()===t&&Od(e||"all")},getPressedKeyCodes:function(){return Sd.slice(0)},getAllKeyCodes:function(){const t=[];return Object.keys(kd).forEach((e=>{kd[e].forEach((e=>{let{key:r,scope:n,mods:i,shortcut:o}=e;t.push({scope:n,shortcut:o,mods:i,keys:r.split("+").map((t=>Td(t)))})}))})),t},isPressed:function(t){return"string"==typeof t&&(t=Td(t)),-1!==Sd.indexOf(t)},filter:function(t){const e=t.target||t.srcElement,{tagName:r}=e;let n=!0;const i="INPUT"===r&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(e.type);return(e.isContentEditable||(i||"TEXTAREA"===r||"SELECT"===r)&&!e.readOnly)&&(n=!1),n},trigger:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(kd).forEach((r=>{kd[r].filter((r=>r.scope===e&&r.shortcut===t)).forEach((t=>{t&&t.method&&t.method()}))}))},unbind:Id,keyMap:vd,modifier:xd,modifierMap:wd};for(const t in Rd)Object.prototype.hasOwnProperty.call(Rd,t)&&(Ld[t]=Rd[t]);if("undefined"!=typeof window){const t=window.hotkeys;Ld.noConflict=e=>(e&&window.hotkeys===Ld&&(window.hotkeys=t),Ld),window.hotkeys=Ld}const qd=Ra({args:void 0,config:void 0,data:void 0,status:"IDLE"});var Bd=r(4644),$d=r.n(Bd);const Ud=new class{limits={};limitSuffix=["critical","careful","warning"];setLimits(t){this.limits=t}getLimit(t,e){return null!=this.limits[t]&&null!=this.limits[t][e]?this.limits[t][e]:null}getAlert(t,e,r,n,i){var o=(i=i||!1)?"_log":"",s=100*(r=r||0)/(n=n||100);if(null!=this.limits[t])for(var a=0;a=this.limits[t][l]){var c=l.lastIndexOf("_");return l.substring(c+1)+o}}return"ok"+o}getAlertLog(t,e,r,n){return this.getAlert(t,e,r,n,!0)}};const Fd=new class{data=void 0;init(t=60){let e;const r=()=>(qd.status="PENDING",Promise.all([fetch("api/4/all",{method:"GET"}).then((t=>t.json())),fetch("api/4/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,qd.data=e,qd.status="SUCCESS"})).catch((t=>{console.log(t),qd.status="FAILURE"})).then((()=>{e&&clearTimeout(e),e=setTimeout(r,1e3*t)})));r(),fetch("api/4/all/limits",{method:"GET"}).then((t=>t.json())).then((t=>{Ud.setLimits(t)})),fetch("api/4/args",{method:"GET"}).then((t=>t.json())).then(((t={})=>{qd.args={...qd.args,...t}})),fetch("api/4/config",{method:"GET"}).then((t=>t.json())).then(((t={})=>{qd.config={...qd.config,...t}}))}getData(){return this.data}};const zd=new class{constructor(){this.favico=new($d())({animation:"none"})}badge(t){this.favico.badge(t)}reset(){this.favico.reset()}},Hd={key:0},Vd={class:"container-fluid"},Gd={class:"row"},Wd={class:"col-sm-12 col-lg-24 title"},Kd={class:"row"},Xd={class:"col-sm-12 col-lg-24"},Qd={class:"table table-sm table-borderless table-striped table-hover"};const Zd={data:()=>({help:void 0}),mounted(){fetch("api/4/help",{method:"GET"}).then((t=>t.json())).then((t=>this.help=t))}};var Yd=r(6262);const Jd=(0,Yd.A)(Zd,[["render",function(t,e,r,n,i,o){return i.help?(xu(),Au("div",Hd,[Iu("div",Vd,[Iu("div",Gd,[Iu("div",Wd,As(i.help.version)+" "+As(i.help.psutil_version),1)]),e[0]||(e[0]=Iu("div",{class:"row"}," ",-1)),Iu("div",Kd,[Iu("div",Xd,As(i.help.configuration_file),1)]),e[1]||(e[1]=Iu("div",{class:"row"}," ",-1))]),Iu("table",Qd,[Iu("thead",null,[Iu("tr",null,[Iu("th",null,As(i.help.header_sort.replace(":","")),1),Iu("th",null,As(i.help.header_show_hide.replace(":","")),1),Iu("th",null,As(i.help.header_toggle.replace(":","")),1),Iu("th",null,As(i.help.header_miscellaneous.replace(":","")),1)])]),Iu("tbody",null,[Iu("tr",null,[Iu("td",null,As(i.help.sort_auto),1),Iu("td",null,As(i.help.show_hide_application_monitoring),1),Iu("td",null,As(i.help.toggle_bits_bytes),1),Iu("td",null,As(i.help.misc_erase_process_filter),1)]),Iu("tr",null,[Iu("td",null,As(i.help.sort_cpu),1),Iu("td",null,As(i.help.show_hide_diskio),1),Iu("td",null,As(i.help.toggle_count_rate),1),Iu("td",null,As(i.help.misc_generate_history_graphs),1)]),Iu("tr",null,[Iu("td",null,As(i.help.sort_io_rate),1),Iu("td",null,As(i.help.show_hide_containers),1),Iu("td",null,As(i.help.toggle_used_free),1),Iu("td",null,As(i.help.misc_help),1)]),Iu("tr",null,[Iu("td",null,As(i.help.sort_mem),1),Iu("td",null,As(i.help.show_hide_top_extended_stats),1),Iu("td",null,As(i.help.toggle_bar_sparkline),1),Iu("td",null,As(i.help.misc_accumulate_processes_by_program),1)]),Iu("tr",null,[Iu("td",null,As(i.help.sort_process_name),1),Iu("td",null,As(i.help.show_hide_filesystem),1),Iu("td",null,As(i.help.toggle_separate_combined),1),e[2]||(e[2]=Iu("td",null," ",-1))]),Iu("tr",null,[Iu("td",null,As(i.help.sort_cpu_times),1),Iu("td",null,As(i.help.show_hide_gpu),1),Iu("td",null,As(i.help.toggle_live_cumulative),1),Iu("td",null,As(i.help.misc_reset_processes_summary_min_max),1)]),Iu("tr",null,[Iu("td",null,As(i.help.sort_user),1),Iu("td",null,As(i.help.show_hide_ip),1),Iu("td",null,As(i.help.toggle_linux_percentage),1),Iu("td",null,As(i.help.misc_quit),1)]),Iu("tr",null,[e[3]||(e[3]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_tcp_connection),1),Iu("td",null,As(i.help.toggle_cpu_individual_combined),1),Iu("td",null,As(i.help.misc_reset_history),1)]),Iu("tr",null,[e[4]||(e[4]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_alert),1),Iu("td",null,As(i.help.toggle_gpu_individual_combined),1),Iu("td",null,As(i.help.misc_delete_warning_alerts),1)]),Iu("tr",null,[e[5]||(e[5]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_network),1),Iu("td",null,As(i.help.toggle_short_full),1),Iu("td",null,As(i.help.misc_delete_warning_and_critical_alerts),1)]),Iu("tr",null,[e[6]||(e[6]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.sort_cpu_times),1),e[7]||(e[7]=Iu("td",null," ",-1)),e[8]||(e[8]=Iu("td",null," ",-1))]),Iu("tr",null,[e[9]||(e[9]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_irq),1),e[10]||(e[10]=Iu("td",null," ",-1)),e[11]||(e[11]=Iu("td",null," ",-1))]),Iu("tr",null,[e[12]||(e[12]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_raid_plugin),1),e[13]||(e[13]=Iu("td",null," ",-1)),e[14]||(e[14]=Iu("td",null," ",-1))]),Iu("tr",null,[e[15]||(e[15]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_sensors),1),e[16]||(e[16]=Iu("td",null," ",-1)),e[17]||(e[17]=Iu("td",null," ",-1))]),Iu("tr",null,[e[18]||(e[18]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_wifi_module),1),e[19]||(e[19]=Iu("td",null," ",-1)),e[20]||(e[20]=Iu("td",null," ",-1))]),Iu("tr",null,[e[21]||(e[21]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_processes),1),e[22]||(e[22]=Iu("td",null," ",-1)),e[23]||(e[23]=Iu("td",null," ",-1))]),Iu("tr",null,[e[24]||(e[24]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_left_sidebar),1),e[25]||(e[25]=Iu("td",null," ",-1)),e[26]||(e[26]=Iu("td",null," ",-1))]),Iu("tr",null,[e[27]||(e[27]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_quick_look),1),e[28]||(e[28]=Iu("td",null," ",-1)),e[29]||(e[29]=Iu("td",null," ",-1))]),Iu("tr",null,[e[30]||(e[30]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_cpu_mem_swap),1),e[31]||(e[31]=Iu("td",null," ",-1)),e[32]||(e[32]=Iu("td",null," ",-1))]),Iu("tr",null,[e[33]||(e[33]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_all),1),e[34]||(e[34]=Iu("td",null," ",-1)),e[35]||(e[35]=Iu("td",null," ",-1))])])]),e[36]||(e[36]=Mu('
 

For an exhaustive list of key bindings, click here.

 

Press h to came back to Glances.

',5))])):Ru("v-if",!0)}]]),tm={id:"alerts",class:"plugin"},em={key:0,class:"title"},rm={key:1,class:"title"},nm={class:"table table-sm table-borderless"},im={scope:"row"},om={scope:"row"},sm={scope:"row"};var am=r(2543);const lm={props:{data:{type:Object}},computed:{stats(){return this.data.stats.alert},alerts(){return(this.stats||[]).map((t=>{const e={};if(e.state=t.state,e.type=t.type,e.begin=1e3*t.begin,e.end=1e3*t.end,e.ongoing=-1==t.end,e.min=t.min,e.avg=t.avg,e.max=t.max,t.top.length>0&&(e.top=": "+t.top.join(", ")),!e.ongoing){const t=e.end-e.begin,r=parseInt(t/1e3%60),n=parseInt(t/6e4%60),i=parseInt(t/36e5%24);e.duration=(0,am.padStart)(i,2,"0")+":"+(0,am.padStart)(n,2,"0")+":"+(0,am.padStart)(r,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?zd.badge(this.countOngoingAlerts):zd.reset()}},methods:{formatDate(t){const e=(new Date).getTimezoneOffset(),r=Math.trunc(Math.abs(e)/60),n=Math.abs(e%60);let i=e<=0?"+":"-";i+=String(r).padStart(2,"0")+String(n).padStart(2,"0");const o=new Date(t);return String(o.getFullYear())+"-"+String(o.getMonth()+1).padStart(2,"0")+"-"+String(o.getDate()).padStart(2,"0")+" "+String(o.getHours()).padStart(2,"0")+":"+String(o.getMinutes()).padStart(2,"0")+":"+String(o.getSeconds()).padStart(2,"0")+"("+i+")"},clear(){fetch("api/4/events/clear/all",{method:"POST",headers:{"Content-Type":"application/json"}}).then((t=>t.json())).then((t=>product.value=t))}}},cm=(0,Yd.A)(lm,[["render",function(t,e,r,n,i,o){return xu(),Au("section",tm,[o.hasAlerts?(xu(),Au("span",em,[Lu(" Warning or critical alerts (last "+As(o.countAlerts)+" entries) ",1),Iu("span",null,[Iu("button",{class:"button",onClick:e[0]||(e[0]=t=>o.clear())},"Clear alerts")])])):(xu(),Au("span",rm,"No warning or critical alert detected")),Iu("table",nm,[Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.alerts,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",im,[Iu("span",null,As(o.formatDate(e.begin)),1)]),Iu("td",om,[Iu("span",null,"("+As(e.ongoing?"ongoing":e.duration)+")",1)]),Iu("td",sm,[Al(Iu("span",null,As(e.state)+" on ",513),[[xp,!e.ongoing]]),Iu("span",{class:xs(e.state.toLowerCase())},As(e.type),3),Iu("span",null,"("+As(t.$filters.number(e.max,1))+")",1),Iu("span",null,As(e.top),1)])])))),128))])])])}]]),um={key:0,id:"cloud",class:"plugin"},pm={class:"title"};const dm={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cloud},provider(){return void 0!==this.stats.id?`${stats.platform}`:null},instance(){const{stats:t}=this;return void 0!==this.stats.id?`${t.type} instance ${t.name} (${t.region})`:null}}},mm=(0,Yd.A)(dm,[["render",function(t,e,r,n,i,o){return o.instance||o.provider?(xu(),Au("section",um,[Iu("span",pm,As(o.provider),1),Lu(" "+As(o.instance),1)])):Ru("v-if",!0)}]]),fm={id:"connections",class:"plugin"},hm={class:"table table-sm table-borderless margin-bottom"},gm={class:"text-end"},bm={class:"text-end"},ym={class:"text-end"},vm={class:"text-end"};const xm={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()}}},wm=(0,Yd.A)(xm,[["render",function(t,e,r,n,i,o){return xu(),Au("section",fm,[Iu("table",hm,[e[5]||(e[5]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"TCP CONNECTIONS"),Iu("th",{scope:"col",class:"text-end"})])],-1)),Iu("tbody",null,[Iu("tr",null,[e[0]||(e[0]=Iu("td",{scope:"row"},"Listen",-1)),Iu("td",gm,As(o.listen),1)]),Iu("tr",null,[e[1]||(e[1]=Iu("td",{scope:"row"},"Initiated",-1)),Iu("td",bm,As(o.initiated),1)]),Iu("tr",null,[e[2]||(e[2]=Iu("td",{scope:"row"},"Established",-1)),Iu("td",ym,As(o.established),1)]),Iu("tr",null,[e[3]||(e[3]=Iu("td",{scope:"row"},"Terminated",-1)),Iu("td",vm,As(o.terminated),1)]),Iu("tr",null,[e[4]||(e[4]=Iu("td",{scope:"row"},"Tracked",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("nf_conntrack_percent")])},As(o.tracked.count)+"/"+As(o.tracked.max),3)])])])])}]]),_m={id:"cpu",class:"plugin"},km={class:"table-responsive"},Sm={class:"table-sm table-borderless"},Am={class:"justify-content-between"},Em={scope:"col"},Cm={class:"table table-sm table-borderless"},Tm={key:0,scope:"col"},Om={class:"d-none d-xl-block d-xxl-block"},Dm={class:"table table-sm table-borderless"},Im={scope:"col"},Pm={scope:"col",class:"text-end"},jm={scope:"col"},Nm={scope:"col",class:"text-end"},Lm={scope:"col"},Mm={scope:"col",class:"text-end"},Rm={key:0,scope:"col"},qm={scope:"col"},Bm={class:"d-none d-xxl-block"},$m={class:"table table-sm table-borderless"},Um={key:0,scope:"col"},Fm={scope:"col"},zm={scope:"col",class:"text-end"},Hm={key:0,scope:"col"},Vm={key:1,scope:"col",class:"text-end"},Gm={key:0,scope:"col"},Wm={key:1,scope:"col",class:"text-end"};const Km={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},guest(){return this.stats.guest},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()}}},Xm=(0,Yd.A)(Km,[["render",function(t,e,r,n,i,o){return xu(),Au("section",_m,[Ru(" d-none d-xxl-block "),Iu("div",km,[Iu("table",Sm,[Iu("tbody",null,[Iu("tr",Am,[Iu("td",Em,[Iu("table",Cm,[Iu("tbody",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"CPU",-1)),Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("total")])},[Iu("span",null,As(o.total)+"%",1)],2)]),Iu("tr",null,[e[1]||(e[1]=Iu("td",{scope:"col"},"user:",-1)),Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("user")])},[Iu("span",null,As(o.user)+"%",1)],2)]),Iu("tr",null,[e[2]||(e[2]=Iu("td",{scope:"col"},"system:",-1)),Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("system")])},[Iu("span",null,As(o.system)+"%",1)],2)]),Iu("tr",null,[null!=o.iowait?(xu(),Au("td",Tm,"iowait:")):Ru("v-if",!0),null!=o.iowait?(xu(),Au("td",{key:1,scope:"col",class:xs(["text-end",o.getDecoration("iowait")])},[Iu("span",null,As(o.iowait)+"%",1)],2)):Ru("v-if",!0)])])])]),Iu("td",null,[Iu("template",Om,[Iu("table",Dm,[Iu("tbody",null,[Iu("tr",null,[Al(Iu("td",Im,"idle:",512),[[xp,null!=o.idle]]),Al(Iu("td",Pm,[Iu("span",null,As(o.idle)+"%",1)],512),[[xp,null!=o.idle]])]),Iu("tr",null,[Al(Iu("td",jm,"irq:",512),[[xp,null!=o.irq]]),Al(Iu("td",Nm,[Iu("span",null,As(o.irq)+"%",1)],512),[[xp,null!=o.irq]])]),Iu("tr",null,[Al(Iu("td",Lm,"nice:",512),[[xp,null!=o.nice]]),Al(Iu("td",Mm,[Iu("span",null,As(o.nice)+"%",1)],512),[[xp,null!=o.nice]])]),Iu("tr",null,[null==o.iowait&&null!=o.dpc?(xu(),Au("td",Rm,"dpc:")):Ru("v-if",!0),null==o.iowait&&null!=o.dpc?(xu(),Au("td",{key:1,scope:"col",class:xs(["text-end",o.getDecoration("dpc")])},[Iu("span",null,As(o.dpc)+"%",1)],2)):Ru("v-if",!0),Al(Iu("td",qm,"steal:",512),[[xp,null!=o.steal]]),Al(Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("steal")])},[Iu("span",null,As(o.steal)+"%",1)],2),[[xp,null!=o.steal]])])])])])]),Iu("td",null,[Iu("template",Bm,[Iu("table",$m,[Iu("tbody",null,[Iu("tr",null,[null!=o.nice&&null!=o.ctx_switches?(xu(),Au("td",Um," ctx_sw:")):Ru("v-if",!0),null!=o.nice&&null!=o.ctx_switches?(xu(),Au("td",{key:1,scope:"col",class:xs(["text-end",o.getDecoration("ctx_switches")])},[Iu("span",null,As(o.ctx_switches),1)],2)):Ru("v-if",!0)]),Iu("tr",null,[Al(Iu("td",Fm,"inter:",512),[[xp,null!=o.interrupts]]),Al(Iu("td",zm,[Iu("span",null,As(o.interrupts),1)],512),[[xp,null!=o.interrupts]])]),Iu("tr",null,[o.isWindows||o.isSunOS||null==o.soft_interrupts?Ru("v-if",!0):(xu(),Au("td",Hm,"sw_int: ")),o.isWindows||o.isSunOS||null==o.soft_interrupts?Ru("v-if",!0):(xu(),Au("td",Vm,[Iu("span",null,As(o.soft_interrupts),1)]))]),Iu("tr",null,[o.isLinux&&null!=o.guest?(xu(),Au("td",Gm,"guest:")):Ru("v-if",!0),o.isLinux&&null!=o.guest?(xu(),Au("td",Wm,[Iu("span",null,As(o.guest)+"%",1)])):Ru("v-if",!0)])])])])])])])])])])}]]),Qm={key:0,id:"diskio",class:"plugin"},Zm={class:"table table-sm table-borderless margin-bottom"},Ym={scope:"col",class:"text-end w-25"},Jm={scope:"col",class:"text-end w-25"},tf={scope:"col",class:"text-end w-25"},ef={scope:"col",class:"text-end w-25"},rf={scope:"col",class:"text-end w-25"},nf={scope:"col",class:"text-end w-25"},of={scope:"row",class:"text-truncate"};var sf=r(4728),af=r.n(sf);function lf(t,e){return cf(t=8*Math.round(t),e)+"b"}function cf(t,e){if(e=e||!1,isNaN(parseFloat(t))||!isFinite(t)||0==t)return t;const r=["Y","Z","E","P","T","G","M","K"],n={Y:12089258196146292e8,Z:11805916207174113e5,E:0x1000000000000000,P:0x4000000000000,T:1099511627776,G:1073741824,M:1048576,K:1024};for(var i=0;i1){var a=0;return s<10?a=2:s<100&&(a=1),e?a="MK"==o?0:(0,am.min)([1,a]):"K"==o&&(a=0),parseFloat(s).toFixed(a)+o}}return t.toFixed(0)}function uf(t){return void 0===t||""===t?"?":t}function pf(t,e,r){return e=e||0,r=r||" ",String(t).padStart(e,r)}function df(t,e){return"function"!=typeof t.slice&&(t=String(t)),t.slice(0,e)}function mf(t,e,r=!0){return e=e||8,t.length>e?r?t.substring(0,e-1)+"_":"_"+t.substring(t.length-e+1):t}function ff(t){if(void 0===t)return t;var e=function(t){var e=document.createElement("div");return e.innerText=t,e.innerHTML}(t),r=e.replace(/\n/g,"
");return af()(r)}function hf(t,e){return void 0===t||isNaN(t)?"-":new Intl.NumberFormat("en-US","number"==typeof e?{maximumFractionDigits:e}:e).format(t)}function gf(t){for(var e=0,r=0;r`${t}: ${e}`)).join(" / ")}const vf={props:{data:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.diskio},view(){return this.data.views.diskio},disks(){const t=this.stats.map((t=>({name:t.disk_name,alias:void 0!==t.alias?t.alias:null,bitrate:{txps:cf(t.read_bytes_rate_per_sec),rxps:cf(t.write_bytes_rate_per_sec)},count:{txps:cf(t.read_count_rate_per_sec),rxps:cf(t.write_count_rate_per_sec)},latency:{txps:cf(t.read_latency),rxps:cf(t.write_latency)}}))).filter((t=>{const e=this.view[t.name].read_bytes_rate_per_sec,r=this.view[t.name].write_bytes_rate_per_sec;return!(e&&!1!==e.hidden||r&&!1!==r.hidden)}));return(0,am.orderBy)(t,["name"])},hasDisks(){return this.disks.length>0}},methods:{getDecoration(t,e){return null==this.view[t][e]?null==this.view[e]?void 0:this.view[e].decoration.toLowerCase():this.view[t][e].decoration.toLowerCase()}}},xf=(0,Yd.A)(vf,[["render",function(t,e,r,n,i,o){return o.hasDisks?(xu(),Au("section",Qm,[Iu("table",Zm,[Iu("thead",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"DISK I/O",-1)),Al(Iu("th",Ym,"Rps",512),[[xp,!o.args.diskio_iops&&!o.args.diskio_latency]]),Al(Iu("th",Jm,"Wps",512),[[xp,!o.args.diskio_iops&&!o.args.diskio_latency]]),Al(Iu("th",tf,"ms/opR",512),[[xp,o.args.diskio_latency]]),Al(Iu("th",ef,"ms/opW",512),[[xp,o.args.diskio_latency]]),Al(Iu("th",rf,"IORps",512),[[xp,o.args.diskio_iops]]),Al(Iu("th",nf,"IOWps",512),[[xp,o.args.diskio_iops]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.disks,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",of,As(t.$filters.minSize(e.alias?e.alias:e.name,16)),1),Al(Iu("td",{class:xs(["text-end w-25",o.getDecoration(e.name,"write_bytes_rate_per_sec")])},As(e.bitrate.txps),3),[[xp,!o.args.diskio_iops&&!o.args.diskio_latency]]),Al(Iu("td",{class:xs(["text-end w-25",o.getDecoration(e.name,"read_bytes_rate_per_sec")])},As(e.bitrate.rxps),3),[[xp,!o.args.diskio_iops&&!o.args.diskio_latency]]),Al(Iu("td",{class:xs(["text-end w-25",o.getDecoration(e.name,"write_latency")])},As(e.latency.txps),3),[[xp,o.args.diskio_latency]]),Al(Iu("td",{class:xs(["text-end w-25",o.getDecoration(e.name,"read_latency")])},As(e.latency.rxps),3),[[xp,o.args.diskio_latency]]),Al(Iu("td",{class:"text-end w-25"},As(e.count.txps),513),[[xp,o.args.diskio_iops]]),Al(Iu("td",{class:"text-end w-25"},As(e.count.rxps),513),[[xp,o.args.diskio_iops]])])))),128))])])])):Ru("v-if",!0)}]]),wf={key:0,id:"containers",class:"plugin"},_f={class:"table-responsive d-md-none"},kf={class:"table table-sm table-borderless table-striped table-hover"},Sf={scope:"col"},Af={scope:"col"},Ef={scope:"col"},Cf={scope:"col"},Tf={class:"table-responsive d-none d-md-block"},Of={class:"table table-sm table-borderless table-striped table-hover"},Df={scope:"col"},If={scope:"col"},Pf={scope:"col"},jf={scope:"col"},Nf={scope:"col"},Lf={scope:"col"},Mf={scope:"col"},Rf={scope:"col"},qf={scope:"col"},Bf={scope:"col"};const $f={props:{data:{type:Object}},data:()=>({store:qd,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.containers},views(){return this.data.views.containers},containers(){const{sorter:t}=this,e=(this.stats||[]).map((t=>{let e;return null!=t.memory_usage?(e=t.memory_usage,null!=t.memory_inactive_file&&(e-=t.memory_inactive_file)):e=void 0,{id:t.id,name:t.name,status:t.status,uptime:t.uptime,cpu_percent:t.cpu.total,memory_usage:e,limit:t.memory.limit,io_rx:t.io_rx,io_wx:t.io_wx,network_rx:t.network_rx,network_tx:t.network_tx,command:t.command,image:t.image,engine:t.engine,pod_id:t.pod_id}}));return(0,am.orderBy)(e,[t.column].map((t=>e=>e["memory_percent"===t?"memory_usage":t]??-1/0),[]),[t.isReverseColumn(t.column)?"desc":"asc"])},showEngine(){return this.views.show_engine_name},showPod(){return this.views.show_pod_name}},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}})}}},methods:{getDisableStats:()=>Ud.getLimit("containers","containers_disable_stats")||[]}},Uf=(0,Yd.A)($f,[["render",function(t,e,r,n,i,o){return o.containers.length?(xu(),Au("section",wf,[e[6]||(e[6]=Iu("span",{class:"title"},"CONTAINERS",-1)),Al(Iu("span",null,As(o.containers.length)+" sorted by "+As(i.sorter.getColumnLabel(i.sorter.column)),513),[[xp,o.containers.length>1]]),Iu("div",_f,[Iu("table",kf,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",Sf,"Pod",512),[[xp,o.showPod]]),Al(Iu("td",{scope:"col",class:xs(["sortable","name"===i.sorter.column&&"sort"]),onClick:e[0]||(e[0]=t=>o.args.sort_processes_key="name")}," Name ",2),[[xp,!o.getDisableStats().includes("name")]]),Al(Iu("td",Af,"Status",512),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","cpu_percent"===i.sorter.column&&"sort"]),onClick:e[1]||(e[1]=t=>o.args.sort_processes_key="cpu_percent")}," CPU% ",2),[[xp,!o.getDisableStats().includes("cpu")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","memory_percent"===i.sorter.column&&"sort"]),onClick:e[2]||(e[2]=t=>o.args.sort_processes_key="memory_percent")}," MEM ",2),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",Ef,"MAX",512),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",Cf,"Command",512),[[xp,!o.getDisableStats().includes("command")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.containers,((e,r)=>(xu(),Au("tr",{key:r},[Al(Iu("td",{scope:"row"},As(e.pod_id||"-"),513),[[xp,o.showPod]]),Al(Iu("td",{scope:"row"},As(e.name),513),[[xp,!o.getDisableStats().includes("name")]]),Al(Iu("td",{scope:"row",class:xs(["Paused"===e.status&&"careful","exited"===e.status&&"warning",!["Paused","exited"].includes(e.status)&&"ok"])},As(e.status),3),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"row"},As(t.$filters.number(e.cpu_percent,1)),513),[[xp,!o.getDisableStats().includes("cpu")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.memory_usage??NaN)?"-":t.$filters.bytes(e.memory_usage)),513),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.limit??NaN)?"-":t.$filters.bytes(e.limit)),513),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.command),513),[[xp,!o.getDisableStats().includes("command")]])])))),128))])])]),Iu("div",Tf,[Iu("table",Of,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",Df,"Engine",512),[[xp,o.showEngine]]),Al(Iu("td",If,"Pod",512),[[xp,o.showPod]]),Al(Iu("td",{scope:"col",class:xs(["sortable","name"===i.sorter.column&&"sort"]),onClick:e[3]||(e[3]=t=>o.args.sort_processes_key="name")}," Name ",2),[[xp,!o.getDisableStats().includes("name")]]),Al(Iu("td",Pf,"Status",512),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",jf,"Uptime",512),[[xp,!o.getDisableStats().includes("uptime")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","cpu_percent"===i.sorter.column&&"sort"]),onClick:e[4]||(e[4]=t=>o.args.sort_processes_key="cpu_percent")}," CPU% ",2),[[xp,!o.getDisableStats().includes("cpu")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","memory_percent"===i.sorter.column&&"sort"]),onClick:e[5]||(e[5]=t=>o.args.sort_processes_key="memory_percent")}," MEM ",2),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",Nf,"MAX",512),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",Lf,"IORps",512),[[xp,!o.getDisableStats().includes("diskio")]]),Al(Iu("td",Mf,"IOWps",512),[[xp,!o.getDisableStats().includes("diskio")]]),Al(Iu("td",Rf,"RXps",512),[[xp,!o.getDisableStats().includes("networkio")]]),Al(Iu("td",qf,"TXps",512),[[xp,!o.getDisableStats().includes("networkio")]]),Al(Iu("td",Bf,"Command",512),[[xp,!o.getDisableStats().includes("command")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.containers,((e,r)=>(xu(),Au("tr",{key:r},[Al(Iu("td",{scope:"row"},As(e.engine),513),[[xp,o.showEngine]]),Al(Iu("td",{scope:"row"},As(e.pod_id||"-"),513),[[xp,o.showPod]]),Al(Iu("td",{scope:"row"},As(e.name),513),[[xp,!o.getDisableStats().includes("name")]]),Al(Iu("td",{scope:"row",class:xs(["Paused"===e.status&&"careful","exited"===e.status&&"warning",!["Paused","exited"].includes(e.status)&&"ok"])},As(e.status),3),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"row"},As(e.uptime),513),[[xp,!o.getDisableStats().includes("uptime")]]),Al(Iu("td",{scope:"row"},As(t.$filters.number(e.cpu_percent,1)),513),[[xp,!o.getDisableStats().includes("cpu")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.memory_usage??NaN)?"-":t.$filters.bytes(e.memory_usage)),513),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.limit??NaN)?"-":t.$filters.bytes(e.limit)),513),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.io_rx??NaN)?"-":t.$filters.bytes(e.io_rx)),513),[[xp,!o.getDisableStats().includes("iodisk")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.io_wx??NaN)?"-":t.$filters.bytes(e.io_wx)),513),[[xp,!o.getDisableStats().includes("iodisk")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.network_rx??NaN)?"-":t.$filters.bits(e.network_rx)),513),[[xp,!o.getDisableStats().includes("networkio")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.network_tx??NaN)?"-":t.$filters.bits(e.network_tx)),513),[[xp,!o.getDisableStats().includes("networkio")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.command),513),[[xp,!o.getDisableStats().includes("command")]])])))),128))])])])])):Ru("v-if",!0)}]]),Ff={key:0,id:"folders",class:"plugin"},zf={class:"table table-sm table-borderless margin-bottom"},Hf={scope:"row"},Vf={key:0,class:"visible-lg-inline"};const Gf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.folders},folders(){return this.stats.map((t=>({path:t.path,size:t.size,errno:t.errno,careful:t.careful,warning:t.warning,critical:t.critical})))},hasFolders(){return this.folders.length>0}},methods:{getDecoration:t=>t.errno>0?"error":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"}},Wf=(0,Yd.A)(Gf,[["render",function(t,e,r,n,i,o){return o.hasFolders?(xu(),Au("section",Ff,[Iu("table",zf,[e[0]||(e[0]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"FOLDERS"),Iu("th",{scope:"col",class:"text-end"},"Size")])],-1)),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.folders,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",Hf,As(e.path),1),Iu("td",{class:xs(["text-end",o.getDecoration(e)])},[e.errno>0?(xu(),Au("span",Vf,"?")):Ru("v-if",!0),Lu(" "+As(t.$filters.bytes(e.size)),1)],2)])))),128))])])])):Ru("v-if",!0)}]]),Kf={key:0,id:"fs",class:"plugin"},Xf={class:"table table-sm table-borderless margin-bottom"},Qf={key:0,scope:"col",class:"text-end w-25"},Zf={key:1,scope:"col",class:"text-end w-25"},Yf={scope:"row"},Jf={key:0,class:"visible-lg-inline"},th={scope:"row",class:"text-end"};const eh={props:{data:{type:Object}},data:()=>({store:qd}),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=>({name:t.device_name,mountPoint:t.mnt_point,percent:t.percent,size:t.size,used:t.used,free:t.free,alias:void 0!==t.alias?t.alias:null})));return(0,am.orderBy)(t,["mnt_point"])},hasFs(){return this.fileSystems.length>0}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},rh=(0,Yd.A)(eh,[["render",function(t,e,r,n,i,o){return o.hasFs?(xu(),Au("section",Kf,[Iu("table",Xf,[Iu("thead",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"FILE SYSTEM",-1)),o.args.fs_free_space?(xu(),Au("th",Zf,"Free")):(xu(),Au("th",Qf,"Used")),e[1]||(e[1]=Iu("th",{scope:"col",class:"text-end w-25"},"Total",-1))])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.fileSystems,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",Yf,[Lu(As(t.$filters.minSize(e.alias?e.alias:e.mountPoint,16,t.begin=!1))+" ",1),(e.alias?e.alias:e.mountPoint).length+e.name.length<=15?(xu(),Au("span",Jf," ("+As(e.name)+") ",1)):Ru("v-if",!0)]),o.args.fs_free_space?(xu(),Au("td",{key:1,scope:"row",class:xs(["text-end",o.getDecoration(e.mountPoint,"used")])},As(t.$filters.bytes(e.free)),3)):(xu(),Au("td",{key:0,scope:"row",class:xs(["text-end",o.getDecoration(e.mountPoint,"used")])},As(t.$filters.bytes(e.used)),3)),Iu("td",th,As(t.$filters.bytes(e.size)),1)])))),128))])])])):Ru("v-if",!0)}]]),nh={key:0,id:"gpu",class:"plugin"},ih={class:"title text-truncate"},oh={key:0,class:"table-responsive"},sh={key:1,class:"col text-end"},ah={key:1,class:"col text-end"},lh={key:1,class:"col text-end"},ch={key:1,class:"table-responsive"},uh={class:"table table-sm table-borderless"},ph={class:"col"},dh={key:1,class:"col"},mh={key:3,class:"col text-end"},fh={key:2,class:"table-responsive"},hh={class:"table table-sm table-borderless"},gh={key:1,class:"col"},bh={key:1,class:"col"},yh={key:1,class:"col"};const vh={props:{data:{type:Object}},data:()=>({store:qd}),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(const r of e)t.proc+=r.proc,t.mem+=r.mem,t.temperature+=r.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=>"DEFAULT"}},xh=(0,Yd.A)(vh,[["render",function(t,e,r,n,i,o){return null!=o.gpus?(xu(),Au("section",nh,[Iu("div",ih,As(o.name),1),Ru(" single gpu "),1===o.gpus.length?(xu(),Au("div",oh,[(xu(!0),Au(fu,null,oc(o.gpus,((r,n)=>(xu(),Au("table",{key:n,class:"table table-sm table-borderless"},[Iu("tbody",null,[Iu("tr",null,[e[1]||(e[1]=Iu("td",{class:"col"},"proc:",-1)),null!=r.proc?(xu(),Au("td",{key:0,class:xs(["col text-end",o.getDecoration(r.gpu_id,"proc")])},[Iu("span",null,As(t.$filters.number(r.proc,0))+"%",1)],2)):Ru("v-if",!0),null==r.proc?(xu(),Au("td",sh,e[0]||(e[0]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)]),Iu("tr",null,[e[3]||(e[3]=Iu("td",{class:"col"},"mem:",-1)),null!=r.mem?(xu(),Au("td",{key:0,class:xs(["col text-end",o.getDecoration(r.gpu_id,"mem")])},[Iu("span",null,As(t.$filters.number(r.mem,0))+"%",1)],2)):Ru("v-if",!0),null==r.mem?(xu(),Au("td",ah,e[2]||(e[2]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)]),Iu("tr",null,[e[5]||(e[5]=Iu("td",{class:"col"},"temp:",-1)),null!=r.temperature?(xu(),Au("td",{key:0,class:xs(["col text-end",o.getDecoration(r.gpu_id,"temperature")])},[Iu("span",null,As(t.$filters.number(r.temperature,0)),1)],2)):Ru("v-if",!0),null==r.temperature?(xu(),Au("td",lh,e[4]||(e[4]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)])])])))),128))])):Ru("v-if",!0),Ru(" multiple gpus - one line per gpu (no mean) "),!o.args.meangpu&&o.gpus.length>1?(xu(),Au("div",ch,[Iu("table",uh,[Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.gpus,((r,n)=>(xu(),Au("tr",{key:n},[Iu("td",ph,As(r.gpu_id)+":",1),null!=r.proc?(xu(),Au("td",{key:0,class:xs(["col",o.getDecoration(r.gpu_id,"proc")])},[Iu("span",null,As(t.$filters.number(r.proc,0))+"%",1)],2)):Ru("v-if",!0),null==r.proc?(xu(),Au("td",dh,e[6]||(e[6]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0),e[8]||(e[8]=Iu("td",{class:"col"},"mem:",-1)),null!=r.mem?(xu(),Au("td",{key:2,class:xs(["col text-end",o.getDecoration(r.gpu_id,"mem")])},[Iu("span",null,As(t.$filters.number(r.mem,0))+"% ",1)],2)):Ru("v-if",!0),null==r.mem?(xu(),Au("td",mh,e[7]||(e[7]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)])))),128))])])])):Ru("v-if",!0),Ru(" multiple gpus - mean "),o.args.meangpu&&o.gpus.length>1?(xu(),Au("div",fh,[Iu("table",hh,[Iu("tbody",null,[Iu("tr",null,[e[10]||(e[10]=Iu("td",{class:"col"},"proc mean:",-1)),null!=o.mean.proc?(xu(),Au("td",{key:0,class:xs(["col",o.getMeanDecoration("proc")])},[Iu("span",null,As(t.$filters.number(o.mean.proc,0))+"%",1)],2)):Ru("v-if",!0),null==o.mean.proc?(xu(),Au("td",gh,e[9]||(e[9]=[Iu("span",null,"N/A",-1),Lu(">")]))):Ru("v-if",!0)]),Iu("tr",null,[e[12]||(e[12]=Iu("td",{class:"col"},"mem mean:",-1)),null!=o.mean.mem?(xu(),Au("td",{key:0,class:xs(["col",o.getMeanDecoration("mem")])},[Iu("span",null,As(t.$filters.number(o.mean.mem,0))+"%",1)],2)):Ru("v-if",!0),null==o.mean.mem?(xu(),Au("td",bh,e[11]||(e[11]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)]),Iu("tr",null,[e[14]||(e[14]=Iu("td",{class:"col"},"temp mean:",-1)),null!=o.mean.temperature?(xu(),Au("td",{key:0,class:xs(["col",o.getMeanDecoration("temperature")])},[Iu("span",null,As(t.$filters.number(o.mean.temperature,0))+"°C",1)],2)):Ru("v-if",!0),null==o.mean.temperature?(xu(),Au("td",yh,e[13]||(e[13]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)])])])])):Ru("v-if",!0)])):Ru("v-if",!0)}]]),wh={id:"system",class:"plugin"},_h={key:0,class:"critical"},kh={class:"title"};const Sh={props:{data:{type:Object}},data:()=>({store:qd}),computed:{stats(){return this.data.stats.system},hostname(){return this.stats.hostname},isDisconnected(){return"FAILURE"===this.store.status}}},Ah=(0,Yd.A)(Sh,[["render",function(t,e,r,n,i,o){return xu(),Au("section",wh,[o.isDisconnected?(xu(),Au("span",_h,"Disconnected from")):Ru("v-if",!0),Iu("span",kh,As(o.hostname),1)])}]]),Eh={key:0,id:"ip",class:"plugin"},Ch={key:0,class:"title"},Th={key:1},Oh={key:2,class:"title"},Dh={key:3},Ih={key:4,class:"text-truncate"};const Ph={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}}},jh=(0,Yd.A)(Ph,[["render",function(t,e,r,n,i,o){return o.address?(xu(),Au("section",Eh,[o.address?(xu(),Au("span",Ch,"IP")):Ru("v-if",!0),o.address?(xu(),Au("span",Th,As(o.address)+"/"+As(o.maskCdir),1)):Ru("v-if",!0),o.publicAddress?(xu(),Au("span",Oh,"Pub")):Ru("v-if",!0),o.publicAddress?(xu(),Au("span",Dh,As(o.publicAddress),1)):Ru("v-if",!0),o.publicInfo?(xu(),Au("span",Ih,As(o.publicInfo),1)):Ru("v-if",!0)])):Ru("v-if",!0)}]]),Nh={id:"irq",class:"plugin"},Lh={class:"table table-sm table-borderless margin-bottom"},Mh={scope:"row"},Rh={scope:"row",class:"text-end"};const qh={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})))}}},Bh=(0,Yd.A)(qh,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Nh,[Iu("table",Lh,[e[0]||(e[0]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"IRQ"),Iu("th",{scope:"col",class:"text-end"},"Rate/s")])],-1)),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.irqs,((t,e)=>(xu(),Au("tr",{key:e},[Iu("td",Mh,As(t.irq_line),1),Iu("td",Rh,As(t.irq_rate),1)])))),128))])])])}]]),$h={key:0,id:"load",class:"plugin"},Uh={class:"table-responsive"},Fh={class:"table table-sm table-borderless"},zh={scope:"col",class:"text-end"},Hh={class:"text-end"};const Vh={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()}}},Gh=(0,Yd.A)(Vh,[["render",function(t,e,r,n,i,o){return null!=o.cpucore?(xu(),Au("section",$h,[Iu("div",Uh,[Iu("table",Fh,[Iu("thead",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"LOAD",-1)),Iu("td",zh,As(o.cpucore)+"-core",1)])]),Iu("tbody",null,[Iu("tr",null,[e[1]||(e[1]=Iu("td",{scope:"row"},"1 min:",-1)),Iu("td",Hh,[Iu("span",null,As(t.$filters.number(o.min1,2)),1)])]),Iu("tr",null,[e[2]||(e[2]=Iu("td",{scope:"row"},"5 min:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("min5")])},[Iu("span",null,As(t.$filters.number(o.min5,2)),1)],2)]),Iu("tr",null,[e[3]||(e[3]=Iu("td",{scope:"row"},"15 min:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("min15")])},[Iu("span",null,As(t.$filters.number(o.min15,2)),1)],2)])])])])])):Ru("v-if",!0)}]]),Wh={id:"mem",class:"plugin"},Kh={class:"table-responsive"},Xh={class:"table-sm table-borderless"},Qh={class:"justify-content-between"},Zh={scope:"col"},Yh={class:"table table-sm table-borderless"},Jh={class:"text-end"},tg={key:0},eg={key:1},rg={class:"d-none d-xl-block d-xxl-block"},ng={class:"table table-sm table-borderless"},ig={scope:"col"},og={scope:"col"},sg={scope:"col"},ag={scope:"col"},lg={scope:"col"},cg={scope:"col"},ug={scope:"col"},pg={scope:"col"};const dg={props:{data:{type:Object}},data:()=>({store:qd}),computed:{config(){return this.store.config||{}},available_args(){return this.config.mem.available||!1},stats(){return this.data.stats.mem},view(){return this.data.views.mem},percent(){return this.stats.percent.toFixed(2)},total(){return this.stats.total},used(){return this.stats.used},available(){return this.stats.available},free(){return this.stats.free},active(){return this.stats.active},inactive(){return this.stats.inactive},buffers(){return this.stats.buffers},cached(){return this.stats.cached}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},mg=(0,Yd.A)(dg,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Wh,[Ru(" d-none d-xxl-block "),Iu("div",Kh,[Iu("table",Xh,[Iu("tbody",null,[Iu("tr",Qh,[Iu("td",Zh,[Iu("table",Yh,[Iu("tbody",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"MEM",-1)),Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("percent")])},[Iu("span",null,As(o.percent)+"%",1)],2)]),Iu("tr",null,[e[1]||(e[1]=Iu("td",{scope:"row"},"total:",-1)),Iu("td",Jh,[Iu("span",null,As(t.$filters.bytes(o.total)),1)])]),o.available_args?Ru("v-if",!0):(xu(),Au("tr",tg,[e[2]||(e[2]=Iu("td",{scope:"row"},"used:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("used")])},[Iu("span",null,As(t.$filters.bytes(o.used,2)),1)],2)])),o.available_args?(xu(),Au("tr",eg,[e[3]||(e[3]=Iu("td",{scope:"row"},"avail:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("available")])},[Iu("span",null,As(t.$filters.bytes(o.available,2)),1)],2)])):Ru("v-if",!0),Iu("tr",null,[e[4]||(e[4]=Iu("td",{scope:"row"},"free:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("free")])},[Iu("span",null,As(t.$filters.bytes(o.free,2)),1)],2)])])])]),Iu("td",null,[Iu("template",rg,[Iu("table",ng,[Iu("tbody",null,[Iu("tr",null,[Al(Iu("td",ig," active: ",512),[[xp,null!=o.active]]),Al(Iu("td",og,[Iu("span",null,As(t.$filters.bytes(o.active)),1)],512),[[xp,null!=o.active]])]),Iu("tr",null,[Al(Iu("td",sg," inactive: ",512),[[xp,null!=o.inactive]]),Al(Iu("td",ag,[Iu("span",null,As(t.$filters.bytes(o.inactive)),1)],512),[[xp,null!=o.inactive]])]),Iu("tr",null,[Al(Iu("td",lg," buffers: ",512),[[xp,null!=o.buffers]]),Al(Iu("td",cg,[Iu("span",null,As(t.$filters.bytes(o.buffers)),1)],512),[[xp,null!=o.buffers]])]),Iu("tr",null,[Al(Iu("td",ug," cached: ",512),[[xp,null!=o.cached]]),Al(Iu("td",pg,[Iu("span",null,As(t.$filters.bytes(o.cached)),1)],512),[[xp,null!=o.cached]])])])])])])])])])])])}]]),fg={id:"memswap",class:"plugin"},hg={class:"table-responsive"},gg={class:"table table-sm table-borderless"},bg={class:"text-end"},yg={class:"text-end"};const vg={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()}}},xg=(0,Yd.A)(vg,[["render",function(t,e,r,n,i,o){return xu(),Au("section",fg,[Iu("div",hg,[Iu("table",gg,[Iu("thead",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"SWAP",-1)),Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("percent")])},[Iu("span",null,As(o.percent)+"%",1)],2)])]),Iu("tbody",null,[Iu("tr",null,[e[1]||(e[1]=Iu("td",{scope:"row"},"total:",-1)),Iu("td",bg,[Iu("span",null,As(t.$filters.bytes(o.total)),1)])]),Iu("tr",null,[e[2]||(e[2]=Iu("td",{scope:"row"},"used:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("used")])},[Iu("span",null,As(t.$filters.bytes(o.used,2)),1)],2)]),Iu("tr",null,[e[3]||(e[3]=Iu("td",{scope:"row"},"free:",-1)),Iu("td",yg,[Iu("span",null,As(t.$filters.bytes(o.free,2)),1)])])])])])])}]]),wg={key:0,id:"network",class:"plugin"},_g={class:"table table-sm table-borderless margin-bottom"},kg={scope:"col",class:"text-end w-25"},Sg={scope:"col",class:"text-end w-25"},Ag={scope:"col",class:"text-end w-25"},Eg={scope:"col",class:"text-end w-25"},Cg={scope:"col",class:"text-end w-25"},Tg={scope:"col",class:"text-end w-25"},Og={scope:"col",class:"text-end w-25"},Dg={scope:"col",class:"text-end w-25"},Ig={scope:"row",class:"visible-lg-inline text-truncate"},Pg={class:"text-end"},jg={class:"text-end"};const Ng={props:{data:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.network},view(){return this.data.views.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,bytes_recv_rate_per_sec:t.bytes_recv_rate_per_sec,bytes_sent_rate_per_sec:t.bytes_sent_rate_per_sec,bytes_all_rate_per_sec:t.bytes_all_rate_per_sec,bytes_recv:t.bytes_recv,bytes_sent:t.bytes_sent,bytes_all:t.bytes_all}})).filter((t=>{const e=this.view[t.interfaceName].bytes_recv_rate_per_sec,r=this.view[t.interfaceName].bytes_sent_rate_per_sec;return!(e&&!1!==e.hidden||r&&!1!==r.hidden)}));return(0,am.orderBy)(t,["interfaceName"])},hasNetworks(){return this.networks.length>0}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},Lg=(0,Yd.A)(Ng,[["render",function(t,e,r,n,i,o){return o.hasNetworks?(xu(),Au("section",wg,[Iu("table",_g,[Iu("thead",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"NETWORK",-1)),Al(Iu("th",kg,"Rxps",512),[[xp,!o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("th",Sg,"Txps",512),[[xp,!o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("th",Ag,null,512),[[xp,!o.args.network_cumul&&o.args.network_sum]]),Al(Iu("th",Eg,"Rx+Txps",512),[[xp,!o.args.network_cumul&&o.args.network_sum]]),Al(Iu("th",Cg,"Rx",512),[[xp,o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("th",Tg,"Tx",512),[[xp,o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("th",Og,null,512),[[xp,o.args.network_cumul&&o.args.network_sum]]),Al(Iu("th",Dg,"Rx+Tx",512),[[xp,o.args.network_cumul&&o.args.network_sum]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.networks,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",Ig,As(t.$filters.minSize(e.alias?e.alias:e.ifname,16)),1),Al(Iu("td",{class:xs(["text-end",o.getDecoration(e.interfaceName,"bytes_recv_rate_per_sec")])},As(o.args.byte?t.$filters.bytes(e.bytes_recv_rate_per_sec):t.$filters.bits(e.bytes_recv_rate_per_sec)),3),[[xp,!o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("td",{class:xs(["text-end",o.getDecoration(e.interfaceName,"bytes_sent_rate_per_sec")])},As(o.args.byte?t.$filters.bytes(e.bytes_sent_rate_per_sec):t.$filters.bits(e.bytes_sent_rate_per_sec)),3),[[xp,!o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("td",Pg,null,512),[[xp,!o.args.network_cumul&&o.args.network_sum]]),Al(Iu("td",{class:"text-end"},As(o.args.byte?t.$filters.bytes(e.bytes_all_rate_per_sec):t.$filters.bits(e.bytes_all_rate_per_sec)),513),[[xp,!o.args.network_cumul&&o.args.network_sum]]),Al(Iu("td",{class:"text-end"},As(o.args.byte?t.$filters.bytes(e.bytes_recv):t.$filters.bits(e.bytes_recv)),513),[[xp,o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("td",{class:"text-end"},As(o.args.byte?t.$filters.bytes(e.bytes_sent):t.$filters.bits(e.bytes_sent)),513),[[xp,o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("td",jg,null,512),[[xp,o.args.network_cumul&&o.args.network_sum]]),Al(Iu("td",{class:"text-end"},As(o.args.byte?t.$filters.bytes(e.bytes_all):t.$filters.bits(e.bytes_all)),513),[[xp,o.args.network_cumul&&o.args.network_sum]])])))),128))])])])):Ru("v-if",!0)}]]),Mg={id:"now",class:"plugin"};const Rg={props:{data:{type:Object}},computed:{date_custom(){return this.data.stats.now.custom}}},qg=(0,Yd.A)(Rg,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Mg,[Iu("span",null,As(o.date_custom),1)])}]]),Bg={id:"percpu",class:"plugin"},$g={class:"table-responsive"},Ug={class:"table-sm table-borderless"},Fg={key:0,scope:"col"},zg={key:1,scope:"col"},Hg={key:0,scope:"col"},Vg={key:1,scope:"col"};const Gg={props:{data:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},percpuStats(){return this.data.stats.percpu}},methods:{getUserAlert:t=>Ud.getAlert("percpu","percpu_user_",t.user),getSystemAlert:t=>Ud.getAlert("percpu","percpu_system_",t.system),getIOWaitAlert:t=>Ud.getAlert("percpu","percpu_iowait_",t.system)}},Wg=(0,Yd.A)(Gg,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Bg,[Ru(" d-none d-xl-block d-xxl-block "),Iu("div",$g,[Iu("table",Ug,[Iu("thead",null,[Iu("tr",null,[o.args.disable_quicklook?(xu(),Au("th",Fg,"CPU")):Ru("v-if",!0),o.args.disable_quicklook?(xu(),Au("td",zg,"total")):Ru("v-if",!0),e[0]||(e[0]=Iu("td",{scope:"col"},"user",-1)),e[1]||(e[1]=Iu("td",{scope:"col"},"system",-1)),e[2]||(e[2]=Iu("td",{scope:"col"},"idle",-1)),e[3]||(e[3]=Iu("td",{scope:"col"},"iowait",-1)),e[4]||(e[4]=Iu("td",{scope:"col"},"steel",-1))])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.percpuStats,((t,e)=>(xu(),Au("tr",{key:e},[o.args.disable_quicklook?(xu(),Au("td",Hg,"CPU"+As(t.cpu_number),1)):Ru("v-if",!0),o.args.disable_quicklook?(xu(),Au("td",Vg,As(t.total)+"%",1)):Ru("v-if",!0),Iu("td",{scope:"col",class:xs(o.getUserAlert(t))},As(t.user)+"%",3),Iu("td",{scope:"col",class:xs(o.getSystemAlert(t))},As(t.system)+"%",3),Al(Iu("td",{scope:"col"},As(t.idle)+"%",513),[[xp,null!=t.idle]]),Al(Iu("td",{scope:"col",class:xs(o.getIOWaitAlert(t))},As(t.iowait)+"%",3),[[xp,null!=t.iowait]]),Al(Iu("td",{scope:"col"},As(t.steal)+"%",513),[[xp,null!=t.steal]])])))),128))])])])])}]]),Kg={key:0,id:"ports",class:"plugin"},Xg={class:"table table-sm table-borderless margin-bottom"},Qg={scope:"row"},Zg={key:0},Yg={key:1},Jg={key:2},tb={key:3},eb={key:0},rb={key:1},nb={key:2};const ib={props:{data:{type:Object}},computed:{stats(){return this.data.stats.ports},ports(){return this.stats},hasPorts(){return this.ports.length>0}},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"}},ob=(0,Yd.A)(ib,[["render",function(t,e,r,n,i,o){return o.hasPorts?(xu(),Au("section",Kg,[Iu("table",Xg,[Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.ports,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",Qg,[Ru(" prettier-ignore "),Lu(" "+As(t.$filters.minSize(e.description?e.description:e.host+" "+e.port,20)),1)]),e.host?(xu(),Au("td",{key:0,scope:"row",class:xs(["text-end",o.getPortDecoration(e)])},["null"==e.status?(xu(),Au("span",Zg,"Scanning")):"false"==e.status?(xu(),Au("span",Yg,"Timeout")):"true"==e.status?(xu(),Au("span",Jg,"Open")):(xu(),Au("span",tb,As(t.$filters.number(1e3*e.status,0))+"ms",1))],2)):Ru("v-if",!0),e.url?(xu(),Au("td",{key:1,scope:"row",class:xs(["text-end",o.getPortDecoration(e)])},["null"==e.status?(xu(),Au("span",eb,"Scanning")):"Error"==e.status?(xu(),Au("span",rb,"Error")):(xu(),Au("span",nb,"Code "+As(e.status),1))],2)):Ru("v-if",!0)])))),128))])])])):Ru("v-if",!0)}]]),sb={key:0},ab={key:1},lb={key:0,class:"row"},cb={class:"col-lg-18"};const ub={key:0,id:"amps",class:"plugin"},pb={class:"table table-sm table-borderless"},db={key:0},mb=["innerHTML"];const fb={props:{data:{type:Object}},computed:{stats(){return this.data.stats.amps},processes(){return this.stats.filter((t=>null!==t.result))},hasAmps(){return this.processes.length>0}},methods:{getNameDecoration(t){const e=t.count,r=t.countmin,n=t.countmax;let i="ok";return i=e>0?(null===r||e>=r)&&(null===n||e<=n)?"ok":"careful":null===r?"ok":"critical",i}}},hb=(0,Yd.A)(fb,[["render",function(t,e,r,n,i,o){return o.hasAmps?(xu(),Au("section",ub,[Iu("table",pb,[Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.processes,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",{class:xs(o.getNameDecoration(e))},As(e.name),3),e.regex?(xu(),Au("td",db,As(e.count),1)):Ru("v-if",!0),Iu("td",{class:"process-result",innerHTML:t.$filters.nl2br(e.result)},null,8,mb)])))),128))])]),Ru('
\n
\n
\n {{ process.name }}\n
\n
{{ process.count }}
\n
\n
\n
')])):Ru("v-if",!0)}]]),gb={id:"processcount",class:"plugin"},bb={class:"title"};const yb={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},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}}},vb=(0,Yd.A)(yb,[["render",function(t,e,r,n,i,o){return xu(),Au("section",gb,[e[0]||(e[0]=Iu("span",{class:"title"},"TASKS",-1)),Iu("span",null,As(o.total)+" ("+As(o.thread)+" thr),",1),Iu("span",null,As(o.running)+" run,",1),Iu("span",null,As(o.sleeping)+" slp,",1),Iu("span",null,As(o.stopped)+" oth",1),Iu("span",null,As(o.args.programs?"Programs":"Threads"),1),Iu("span",bb,As(r.sorter.auto?"sorted automatically":"sorted"),1),Iu("span",null,"by "+As(r.sorter.getColumnLabel(r.sorter.column)),1)])}]]),xb={key:0,id:"processlist",class:"plugin"},wb={key:0,class:"extendedstats"},_b={class:"careful"},kb={class:"careful"},Sb={class:"careful"},Ab={class:"careful"},Eb={class:"table-responsive d-lg-none"},Cb={class:"table table-sm table-borderless table-striped table-hover"},Tb={scope:"col"},Ob=["onClick"],Db={class:"table-responsive-md d-none d-lg-block"},Ib={class:"table table-sm table-borderless table-striped table-hover"},Pb={scope:"col"},jb={scope:"col"},Nb={scope:"col"},Lb={scope:"col"},Mb={scope:"col"},Rb=["onClick"],qb={key:0,scope:"row",class:""},Bb={key:1,id:"processlist",class:"plugin"},$b={class:"table-responsive d-lg-none"},Ub={class:"table table-sm table-borderless table-striped table-hover"},Fb={class:"table-responsive d-none d-lg-block"},zb={class:"table table-sm table-borderless table-striped table-hover"},Hb={class:""},Vb={class:""},Gb={scope:"row"},Wb={scope:"row",class:"table-cell widtd-60"};const Kb={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats_processlist(){return this.data.stats.processlist},stats_core(){return this.data.stats.core},cpucore(){return 0!==this.stats_core.log?this.stats_core.log:1},extended_stats(){return this.stats_processlist.find((t=>!0===t.extended_stats))||null},processes(){const{sorter:t}=this,e=(this.stats_processlist||[]).map((t=>this.updateProcess(t,this.data.stats.isWindows,this.args,this.cpucore)));return(0,am.orderBy)(e,[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)},ioReadWritePresentProcesses(){return(this.stats_processlist||[]).some((({io_counters:t})=>t))},stats_programlist(){return this.data.stats.programlist},programs(){const{sorter:t}=this,e=this.data.stats.isWindows,r=(this.stats_programlist||[]).map((t=>(t.memvirt="?",t.memres="?",t.memory_info&&(t.memvirt=t.memory_info.vms,t.memres=t.memory_info.rss),e&&null!==t.username&&(t.username=(0,am.last)(t.username.split("\\"))),t.timeforhuman="?",t.cpu_times&&(t.timeplus=bf([t.cpu_times.user,t.cpu_times.system]),t.timeforhuman=t.timeplus.hours.toString().padStart(2,"0")+":"+t.timeplus.minutes.toString().padStart(2,"0")+":"+t.timeplus.seconds.toString().padStart(2,"0")),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(" ").replace(/\n/g," ")),"string"==typeof t.cmdline&&0!==t.cmdline.length||(t.cmdline=t.name),t)));return(0,am.orderBy)(r,[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)},ioReadWritePresentPrograms(){return(this.stats_programlist||[]).some((({io_counters:t})=>t))},limit(){return void 0!==this.config.outputs?this.config.outputs.max_processes_display:void 0}},methods:{updateProcess:(t,e,r,n)=>(t.memvirt="?",t.memres="?",t.memory_info&&(t.memvirt=t.memory_info.vms,t.memres=t.memory_info.rss),e&&null!==t.username&&(t.username=(0,am.last)(t.username.split("\\"))),t.timeforhuman="?",t.cpu_times&&(t.timeplus=bf([t.cpu_times.user,t.cpu_times.system]),t.timeforhuman=t.timeplus.hours.toString().padStart(2,"0")+":"+t.timeplus.minutes.toString().padStart(2,"0")+":"+t.timeplus.seconds.toString().padStart(2,"0")),null===t.num_threads&&(t.num_threads=-1),t.irix=1,null===t.cpu_percent?t.cpu_percent=-1:r.disable_irix&&(t.irix=n),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.name=t.name+" "+t.cmdline.slice(1).join(" ").replace(/\n/g," "),t.cmdline=t.cmdline.join(" ").replace(/\n/g," ")),"string"==typeof t.cmdline&&0!==t.cmdline.length||(t.cmdline=t.name),t),getCpuPercentAlert:t=>Ud.getAlert("processlist","processlist_cpu_",t.cpu_percent),getMemoryPercentAlert:t=>Ud.getAlert("processlist","processlist_mem_",t.cpu_percent),getDisableStats:()=>Ud.getLimit("processlist","processlist_disable_stats")||[],setExtendedStats(t){fetch("api/4/processes/extended/"+t.toString(),{method:"POST"}).then((t=>t.json())),this.$forceUpdate()},disableExtendedStats(){fetch("api/4/processes/extended/disable",{method:"POST"}).then((t=>t.json())),this.$forceUpdate()}}},Xb={components:{GlancesPluginAmps:hb,GlancesPluginProcesscount:vb,GlancesPluginProcesslist:(0,Yd.A)(Kb,[["render",function(t,e,r,n,i,o){return xu(),Au(fu,null,[Ru(" Display processes "),o.args.programs?Ru("v-if",!0):(xu(),Au("section",xb,[null!==o.extended_stats?(xu(),Au("div",wb,[Iu("div",null,[e[24]||(e[24]=Iu("span",{class:"title"},"Pinned task: ",-1)),Iu("span",null,As(t.$filters.limitTo(o.extended_stats.cmdline,80)),1),Iu("span",null,[Iu("button",{class:"button",onClick:e[0]||(e[0]=t=>o.disableExtendedStats())},"Unpin")])]),Iu("div",null,[e[25]||(e[25]=Iu("span",null,"CPU Min/Max/Mean: ",-1)),Iu("span",_b,As(t.$filters.number(o.extended_stats.cpu_min,1))+"% / "+As(t.$filters.number(o.extended_stats.cpu_max,1))+"% / "+As(t.$filters.number(o.extended_stats.cpu_mean,1))+"%",1),e[26]||(e[26]=Iu("span",null,"Affinity: ",-1)),Iu("span",kb,As(o.extended_stats.cpu_affinity|t.length),1)]),Iu("div",null,[e[27]||(e[27]=Iu("span",null,"MEM Min/Max/Mean: ",-1)),Iu("span",Sb,As(t.$filters.number(o.extended_stats.memory_min,1))+"% / "+As(t.$filters.number(o.extended_stats.memory_max,1))+"% / "+As(t.$filters.number(o.extended_stats.memory_mean,1))+"%",1),e[28]||(e[28]=Iu("span",null,"Memory info: ",-1)),Iu("span",Ab,As(t.$filters.dictToString(o.extended_stats.memory_info)),1)])])):Ru("v-if",!0),Iu("div",Eb,[Iu("table",Cb,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",{scope:"col",class:xs(["sortable","cpu_percent"===r.sorter.column&&"sort"]),onClick:e[1]||(e[1]=e=>t.$emit("update:sorter","cpu_percent"))},[Al(Iu("span",null,"CPU%",512),[[xp,!o.args.disable_irix]]),Al(Iu("span",null,"CPUi",512),[[xp,o.args.disable_irix]])],2),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","memory_percent"===r.sorter.column&&"sort"]),onClick:e[2]||(e[2]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",Tb," PID ",512),[[xp,!o.getDisableStats().includes("pid")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","username"===r.sorter.column&&"sort"]),onClick:e[3]||(e[3]=e=>t.$emit("update:sorter","username"))}," USER ",2),[[xp,!o.getDisableStats().includes("username")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","name"===r.sorter.column&&"sort"]),onClick:e[4]||(e[4]=e=>t.$emit("update:sorter","name"))}," Command (click to pin) ",2),[[xp,!o.getDisableStats().includes("cmdline")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.processes,((e,r)=>(xu(),Au("tr",{key:r,style:{cursor:"pointer"},onClick:t=>o.setExtendedStats(e)},[Al(Iu("td",{scope:"row",class:xs(o.getCpuPercentAlert(e))},As(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent/e.irix,1)),3),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"row",class:xs(o.getMemoryPercentAlert(e))},As(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",{scope:"row"},As(e.pid),513),[[xp,!o.getDisableStats().includes("pid")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.name),513),[[xp,o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.cmdline),513),[[xp,!o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]])],8,Ob)))),128))])])]),Iu("div",Db,[Iu("table",Ib,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",{scope:"col",class:xs(["sortable","cpu_percent"===r.sorter.column&&"sort"]),onClick:e[5]||(e[5]=e=>t.$emit("update:sorter","cpu_percent"))},[Al(Iu("span",null,"CPU%",512),[[xp,!o.args.disable_irix]]),Al(Iu("span",null,"CPUi",512),[[xp,o.args.disable_irix]])],2),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","memory_percent"===r.sorter.column&&"sort"]),onClick:e[6]||(e[6]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",Pb," VIRT ",512),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",jb," RES ",512),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",Nb," PID ",512),[[xp,!o.getDisableStats().includes("pid")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","username"===r.sorter.column&&"sort"]),onClick:e[7]||(e[7]=e=>t.$emit("update:sorter","username"))}," USER ",2),[[xp,!o.getDisableStats().includes("username")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","timemillis"===r.sorter.column&&"sort"]),onClick:e[8]||(e[8]=e=>t.$emit("update:sorter","timemillis"))}," TIME+ ",2),[[xp,!o.getDisableStats().includes("cpu_times")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","num_threads"===r.sorter.column&&"sort"]),onClick:e[9]||(e[9]=e=>t.$emit("update:sorter","num_threads"))}," THR ",2),[[xp,!o.getDisableStats().includes("num_threads")]]),Al(Iu("td",Lb,"NI",512),[[xp,!o.getDisableStats().includes("nice")]]),Al(Iu("td",Mb,"S ",512),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"col",class:xs(["",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[10]||(e[10]=e=>t.$emit("update:sorter","io_counters"))}," IORps ",2),[[xp,o.ioReadWritePresentProcesses&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"col",class:xs(["text-start",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[11]||(e[11]=e=>t.$emit("update:sorter","io_counters"))}," IOWps ",2),[[xp,o.ioReadWritePresentProcesses&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","name"===r.sorter.column&&"sort"]),onClick:e[12]||(e[12]=e=>t.$emit("update:sorter","name"))}," Command (click to pin) ",2),[[xp,!o.getDisableStats().includes("cmdline")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.processes,((e,r)=>(xu(),Au("tr",{key:r,style:{cursor:"pointer"},onClick:t=>o.setExtendedStats(e.pid)},[Al(Iu("td",{scope:"row",class:xs(o.getCpuPercentAlert(e))},As(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent/e.irix,1)),3),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"row",class:xs(o.getMemoryPercentAlert(e))},As(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",{scope:"row"},As(t.$filters.bytes(e.memvirt)),513),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",{scope:"row"},As(t.$filters.bytes(e.memres)),513),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",{scope:"row"},As(e.pid),513),[[xp,!o.getDisableStats().includes("pid")]]),Al(Iu("td",{scope:"row"},As(e.username),513),[[xp,!o.getDisableStats().includes("username")]]),Al(Iu("td",{scope:"row",class:""},As(e.timeforhuman),513),[[xp,!o.getDisableStats().includes("cpu_times")]]),"?"==e.timeplus?Al((xu(),Au("td",qb,"?",512)),[[xp,!o.getDisableStats().includes("cpu_times")]]):Ru("v-if",!0),Al(Iu("td",{scope:"row",class:""},As(-1==e.num_threads?"?":e.num_threads),513),[[xp,!o.getDisableStats().includes("num_threads")]]),Al(Iu("td",{scope:"row",class:xs({nice:e.isNice})},As(t.$filters.exclamation(e.nice)),3),[[xp,!o.getDisableStats().includes("nice")]]),Al(Iu("td",{scope:"row",class:xs({status:"R"==e.status})},As(e.status),3),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"row",class:""},As(t.$filters.bytes(e.io_read)),513),[[xp,o.ioReadWritePresentProcesses&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:"text-start"},As(t.$filters.bytes(e.io_write)),513),[[xp,o.ioReadWritePresentProcesses&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.name),513),[[xp,o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.cmdline),513),[[xp,!o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]])],8,Rb)))),128))])])])])),Ru(" Display programs "),o.args.programs?(xu(),Au("section",Bb,[Iu("div",$b,[Iu("table",Ub,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",{class:xs(["sortable","cpu_percent"===r.sorter.column&&"sort"]),onClick:e[13]||(e[13]=e=>t.$emit("update:sorter","cpu_percent"))},[Al(Iu("span",null,"CPU%",512),[[xp,!o.args.disable_irix]]),Al(Iu("span",null,"CPUi",512),[[xp,o.args.disable_irix]])],2),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{class:xs(["sortable","memory_percent"===r.sorter.column&&"sort"]),onClick:e[14]||(e[14]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",null," NPROCS ",512),[[xp,!o.getDisableStats().includes("nprocs")]]),Al(Iu("td",{scope:"row",class:xs(["sortable","name"===r.sorter.column&&"sort"]),onClick:e[15]||(e[15]=e=>t.$emit("update:sorter","name"))}," Command (click to pin) ",2),[[xp,!o.getDisableStats().includes("cmdline")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.programs,((e,r)=>(xu(),Au("tr",{key:r},[Al(Iu("td",{scope:"row",class:xs(o.getCpuPercentAlert(e))},As(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent/e.irix,1)),3),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"row",class:xs(o.getMemoryPercentAlert(e))},As(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",{scope:"row"},As(e.nprocs),513),[[xp,!o.getDisableStats().includes("nprocs")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.name),513),[[xp,o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]]),Al(Iu("td",{scope:"row"},As(e.cmdline),513),[[xp,!o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]])])))),128))])])]),Iu("div",Fb,[Iu("table",zb,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",{class:xs(["sortable","cpu_percent"===r.sorter.column&&"sort"]),onClick:e[16]||(e[16]=e=>t.$emit("update:sorter","cpu_percent"))},[Al(Iu("span",null,"CPU%",512),[[xp,!o.args.disable_irix]]),Al(Iu("span",null,"CPUi",512),[[xp,o.args.disable_irix]])],2),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{class:xs(["sortable","memory_percent"===r.sorter.column&&"sort"]),onClick:e[17]||(e[17]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",Hb," VIRT ",512),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",Vb," RES ",512),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",null," NPROCS ",512),[[xp,!o.getDisableStats().includes("nprocs")]]),Al(Iu("td",{scope:"row",class:xs(["sortable","username"===r.sorter.column&&"sort"]),onClick:e[18]||(e[18]=e=>t.$emit("update:sorter","username"))}," USER ",2),[[xp,!o.getDisableStats().includes("username")]]),Al(Iu("td",{scope:"row",class:xs(["",["sortable","timemillis"===r.sorter.column&&"sort"]]),onClick:e[19]||(e[19]=e=>t.$emit("update:sorter","timemillis"))}," TIME+ ",2),[[xp,!o.getDisableStats().includes("cpu_times")]]),Al(Iu("td",{scope:"row",class:xs(["",["sortable","num_threads"===r.sorter.column&&"sort"]]),onClick:e[20]||(e[20]=e=>t.$emit("update:sorter","num_threads"))}," THR ",2),[[xp,!o.getDisableStats().includes("num_threads")]]),Al(Iu("td",Gb,"NI",512),[[xp,!o.getDisableStats().includes("nice")]]),Al(Iu("td",Wb,"S ",512),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"row",class:xs(["",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[21]||(e[21]=e=>t.$emit("update:sorter","io_counters"))}," IORps ",2),[[xp,o.ioReadWritePresentPrograms&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:xs(["text-start",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[22]||(e[22]=e=>t.$emit("update:sorter","io_counters"))}," IOWps ",2),[[xp,o.ioReadWritePresentPrograms&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:xs(["sortable","name"===r.sorter.column&&"sort"]),onClick:e[23]||(e[23]=e=>t.$emit("update:sorter","name"))}," Command (click to pin) ",2),[[xp,!o.getDisableStats().includes("cmdline")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.programs,((e,r)=>(xu(),Au("tr",{key:r},[Al(Iu("td",{scope:"row",class:xs(o.getCpuPercentAlert(e))},As(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent/e.irix,1)),3),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"row",class:xs(o.getMemoryPercentAlert(e))},As(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",{scope:"row"},As(t.$filters.bytes(e.memvirt)),513),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",{scope:"row"},As(t.$filters.bytes(e.memres)),513),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",{scope:"row"},As(e.nprocs),513),[[xp,!o.getDisableStats().includes("nprocs")]]),Al(Iu("td",{scope:"row"},As(e.username),513),[[xp,!o.getDisableStats().includes("username")]]),Al(Iu("td",{scope:"row",class:""},As(e.timeforhuman),513),[[xp,!o.getDisableStats().includes("cpu_times")]]),Al(Iu("td",{scope:"row",class:""},As(-1==e.num_threads?"?":e.num_threads),513),[[xp,!o.getDisableStats().includes("num_threads")]]),Al(Iu("td",{scope:"row",class:xs({nice:e.isNice})},As(t.$filters.exclamation(e.nice)),3),[[xp,!o.getDisableStats().includes("nice")]]),Al(Iu("td",{scope:"row",class:xs({status:"R"==e.status})},As(e.status),3),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"row",class:""},As(t.$filters.bytes(e.io_read)),513),[[xp,o.ioReadWritePresentPrograms&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:"text-start"},As(t.$filters.bytes(e.io_write)),513),[[xp,o.ioReadWritePresentPrograms&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.name),513),[[xp,o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]]),Al(Iu("td",{scope:"row"},As(e.cmdline),513),[[xp,!o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]])])))),128))])])])])):Ru("v-if",!0)],64)}]])},props:{data:{type:Object}},data:()=>({store:qd,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{cpu_percent:"CPU consumption",memory_percent:"memory consumption",username:"user name",timemillis:"process time",cpu_times:"process time",io_counters:"disk IO",name:"process name",None:"None"}[t]||t}})}}}},Qb=(0,Yd.A)(Xb,[["render",function(t,e,r,n,i,o){const s=ec("glances-plugin-processcount"),a=ec("glances-plugin-amps"),l=ec("glances-plugin-processlist");return o.args.disable_process?(xu(),Au("div",sb,"PROCESSES DISABLED (press 'z' to display)")):(xu(),Au("div",ab,[Pu(s,{sorter:i.sorter,data:r.data},null,8,["sorter","data"]),o.args.disable_amps?Ru("v-if",!0):(xu(),Au("div",lb,[Iu("div",cb,[Pu(a,{data:r.data},null,8,["data"])])])),Pu(l,{sorter:i.sorter,data:r.data,"onUpdate:sorter":e[0]||(e[0]=t=>o.args.sort_processes_key=t)},null,8,["sorter","data"])]))}]]),Zb={id:"quicklook",class:"plugin"},Yb={class:"d-flex justify-content-between"},Jb={class:"text-start text-truncate"},ty={key:0,class:"text-end d-none d-xxl-block frequency"},ey={class:"table-responsive"},ry={class:"table table-sm table-borderless"},ny={key:0},iy={scope:"col",class:"progress"},oy=["aria-valuenow"],sy={scope:"col",class:"text-end"},ay={scope:"col"},ly={scope:"col",class:"progress"},cy=["aria-valuenow"],uy={scope:"col",class:"text-end"},py={scope:"col"},dy={scope:"col",class:"progress"},my=["aria-valuenow"],fy={scope:"col",class:"text-end"};const hy={props:{data:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats(){return this.data.stats.quicklook},view(){return this.data.views.quicklook},cpu(){return this.stats.cpu},cpu_name(){return this.stats.cpu_name},cpu_hz_current(){return(this.stats.cpu_hz_current/1e6).toFixed(0)},cpu_hz(){return(this.stats.cpu_hz/1e6).toFixed(0)},percpus(){const t=this.stats.percpu.map((({cpu_number:t,total:e})=>({number:t,total:e}))),e=parseInt(this.config.percpu.max_cpu_display);if(this.stats.percpu.length>e){var r=t.sort((function(t,e){return e.total-t.total}));const n={number:"x",total:Number((r.slice(e).reduce(((t,{total:e})=>t+e),0)/(this.stats.percpu.length-e)).toFixed(1))};(r=r.slice(0,e)).push(n)}return this.stats.percpu.length<=e?t:r},stats_list_after_cpu(){return this.view.list.filter((t=>!t.includes("cpu")))}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},gy=(0,Yd.A)(hy,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Zb,[Iu("div",Yb,[Iu("span",Jb,As(o.cpu_name),1),o.cpu_hz_current?(xu(),Au("span",ty,As(o.cpu_hz_current)+"/"+As(o.cpu_hz)+"Ghz ",1)):Ru("v-if",!0)]),Iu("div",ey,[Iu("table",ry,[o.args.percpu?Ru("v-if",!0):(xu(),Au("tr",ny,[e[0]||(e[0]=Iu("td",{scope:"col"},"CPU",-1)),Iu("td",iy,[Iu("div",{class:xs(`progress-bar progress-bar-${o.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":o.cpu,"aria-valuemin":"0","aria-valuemax":"100",style:hs(`width: ${o.cpu}%;`)},"   ",14,oy)]),Iu("td",sy,[Iu("span",null,As(o.cpu)+"%",1)])])),o.args.percpu?(xu(!0),Au(fu,{key:1},oc(o.percpus,((t,e)=>(xu(),Au("tr",{key:e},[Iu("td",ay,"CPU"+As(t.number),1),Iu("td",ly,[Iu("div",{class:xs(`progress-bar progress-bar-${o.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":t.total,"aria-valuemin":"0","aria-valuemax":"100",style:hs(`width: ${t.total}%;`)},"   ",14,cy)]),Iu("td",uy,[Iu("span",null,As(t.total)+"%",1)])])))),128)):Ru("v-if",!0),(xu(!0),Au(fu,null,oc(o.stats_list_after_cpu,(t=>(xu(),Au("tr",null,[Iu("td",py,As(t.toUpperCase()),1),Iu("td",dy,[Iu("div",{class:xs(`progress-bar progress-bar-${o.getDecoration(t)}`),role:"progressbar","aria-valuenow":o.stats[t],"aria-valuemin":"0","aria-valuemax":"100",style:hs(`width: ${o.stats[t]}%;`)},"   ",14,my)]),Iu("td",fy,[Iu("span",null,As(o.stats[t])+"%",1)])])))),256))])])])}]]),by={key:0,id:"raid",class:"plugin"},yy={class:"table table-sm table-borderless margin-bottom"},vy={scope:"col"},xy={scope:"row"},wy={class:"warning"};const _y={props:{data:{type:Object}},computed:{stats(){return this.data.stats.raid},disks(){const t=Object.entries(this.stats).map((([t,e])=>{const r=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"}},ky=(0,Yd.A)(_y,[["render",function(t,e,r,n,i,o){return o.hasDisks?(xu(),Au("section",by,[Iu("table",yy,[Iu("thead",null,[Iu("tr",null,[Iu("th",vy,"RAID disks "+As(o.disks.length),1),e[0]||(e[0]=Iu("th",{scope:"col",class:"text-end"},"Used",-1)),e[1]||(e[1]=Iu("th",{scope:"col",class:"text-end"},"Total",-1))])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.disks,((t,e)=>(xu(),Au("tr",{key:e},[Iu("td",xy,[Lu(As(t.type.toUpperCase())+" "+As(t.name)+" ",1),Al(Iu("div",wy,"└─ Degraded mode",512),[[xp,t.degraded]]),Al(Iu("div",null,"   └─ "+As(t.config),513),[[xp,t.degraded]]),Al(Iu("div",{class:"critical"},"└─ Status "+As(t.status),513),[[xp,t.inactive]]),t.inactive?(xu(!0),Au(fu,{key:0},oc(t.components,((e,r)=>(xu(),Au("div",{key:r},"    "+As(r===t.components.length-1?"└─":"├─")+" disk "+As(e.number)+": "+As(e.name),1)))),128)):Ru("v-if",!0)]),Al(Iu("td",{scope:"row",class:xs(["text-end",o.getAlert(t)])},As(t.used),3),[[xp,"active"==t.status]]),Al(Iu("td",{scope:"row",class:xs(["text-end",o.getAlert(t)])},As(t.available),3),[[xp,"active"==t.status]])])))),128))])])])):Ru("v-if",!0)}]]),Sy={key:0,id:"smart",class:"plugin"},Ay={class:"table table-sm table-borderless margin-bottom"},Ey={scope:"row"},Cy={scope:"row"},Ty={scope:"row",class:"text-end text-truncate"};const Oy={props:{data:{type:Object}},computed:{stats(){return this.data.stats.smart},drives(){return(Array.isArray(this.stats)?this.stats:[]).map((t=>({name:t.DeviceName,details:Object.entries(t).filter((([t])=>"DeviceName"!==t)).sort((([,t],[,e])=>t.namee.name?1:0)).map((([t,e])=>e))})))},hasDrives(){return this.drives.length>0}}},Dy=(0,Yd.A)(Oy,[["render",function(t,e,r,n,i,o){return o.hasDrives?(xu(),Au("section",Sy,[Iu("table",Ay,[e[1]||(e[1]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"SMART DISKS"),Iu("th",{scope:"col",class:"text-end"})])],-1)),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.drives,((t,r)=>(xu(),Au(fu,{key:r},[Iu("tr",null,[Iu("td",Ey,As(t.name),1),e[0]||(e[0]=Iu("td",{scope:"col",class:"text-end"},null,-1))]),(xu(!0),Au(fu,null,oc(t.details,((t,e)=>(xu(),Au("tr",{key:e},[Iu("td",Cy,As(t.name),1),Iu("td",Ty,As(t.raw),1)])))),128))],64)))),128))])])])):Ru("v-if",!0)}]]),Iy={key:0,id:"sensors",class:"plugin"},Py={class:"table table-sm table-borderless"},jy={scope:"row"};const Ny={props:{data:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.sensors},view(){return this.data.views.sensors},sensors(){return this.stats.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)))},hasSensors(){return this.sensors.length>0}},methods:{getDecoration(t){if(void 0!==this.view[t].value.decoration)return this.view[t].value.decoration.toLowerCase()}}},Ly=(0,Yd.A)(Ny,[["render",function(t,e,r,n,i,o){return o.hasSensors?(xu(),Au("section",Iy,[Iu("table",Py,[e[0]||(e[0]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"SENSORS"),Iu("th",{scope:"col",class:"text-end"})])],-1)),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.sensors,((t,e)=>(xu(),Au("tr",{key:e},[Iu("td",jy,As(t.label),1),Iu("td",{class:xs(["text-end",o.getDecoration(t.label)])},As(t.value)+As(t.unit),3)])))),128))])])])):Ru("v-if",!0)}]]),My={id:"system",class:"plugin"},Ry={key:0,class:"critical"},qy={class:"title"},By={key:1,class:"text-truncate"};const $y={props:{data:{type:Object}},data:()=>({store:qd}),computed:{stats(){return this.data.stats.system},hostname(){return this.stats.hostname},humanReadableName(){return this.stats.hr_name},isDisconnected(){return"FAILURE"===this.store.status}}},Uy=(0,Yd.A)($y,[["render",function(t,e,r,n,i,o){return xu(),Au("section",My,[o.isDisconnected?(xu(),Au("span",Ry,"Disconnected from")):Ru("v-if",!0),Iu("span",qy,As(o.hostname),1),o.isDisconnected?Ru("v-if",!0):(xu(),Au("span",By,As(o.humanReadableName),1))])}]]),Fy={id:"uptime",class:"plugin"};const zy={props:{data:{type:Object}},computed:{value(){return this.data.stats.uptime}}},Hy=(0,Yd.A)(zy,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Fy,[Iu("span",null,"Uptime: "+As(o.value),1)])}]]),Vy={key:0,id:"vms",class:"plugin"},Gy={class:"table table-sm table-borderless table-striped table-hover"};const Wy={props:{data:{type:Object}},data:()=>({store:qd,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.vms},views(){return this.data.views.vms},vms(){const{sorter:t}=this,e=(this.stats||[]).map((t=>({id:t.id,name:t.name,status:null!=t.status?t.status:"-",cpu_count:null!=t.cpu_count?t.cpu_count:"-",cpu_time:null!=t.cpu_time?t.cpu_time:"-",cpu_time_rate_per_sec:null!=t.cpu_time_rate_per_sec?t.cpu_time_rate_per_sec:"?",memory_usage:null!=t.memory_usage?t.memory_usage:"-",memory_total:null!=t.memory_total?t.memory_total:"-",load_1min:null!=t.load_1min?t.load_1min:"-",load_5min:null!=t.load_5min?t.load_5min:"-",load_15min:null!=t.load_15min?t.load_15min:"-",release:t.release,image:t.image,engine:t.engine,engine_version:t.engine_version})));return(0,am.orderBy)(e,[t.column].reduce(((t,e)=>("memory_usage"===e&&(e=["memory_usage"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"])},showEngine(){return this.views.show_engine_name}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["load_1min","cpu_time","memory_usage","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"cpu_time",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["name"].includes(t)},getColumnLabel:function(t){return{load_1min:"load",cpu_time:"CPU time",memory_usage:"memory consumption",name:"VM name",None:"None"}[t]||t}})}}}},Ky=(0,Yd.A)(Wy,[["render",function(t,e,r,n,i,o){return o.vms.length?(xu(),Au("section",Vy,[e[8]||(e[8]=Iu("span",{class:"title"},"VMs",-1)),Al(Iu("span",null,As(o.vms.length)+" sorted by "+As(i.sorter.getColumnLabel(i.sorter.column)),513),[[xp,o.vms.length>1]]),Iu("table",Gy,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",null,"Engine",512),[[xp,o.showEngine]]),Iu("td",{class:xs(["sortable","name"===i.sorter.column&&"sort"]),onClick:e[0]||(e[0]=t=>o.args.sort_processes_key="name")}," Name ",2),e[4]||(e[4]=Iu("td",null,"Status",-1)),e[5]||(e[5]=Iu("td",null,"Core",-1)),Iu("td",{class:xs(["sortable","cpu_time"===i.sorter.column&&"sort"]),onClick:e[1]||(e[1]=t=>o.args.sort_processes_key="cpu_time")}," CPU% ",2),Iu("td",{class:xs(["sortable","memory_usage"===i.sorter.column&&"sort"]),onClick:e[2]||(e[2]=t=>o.args.sort_processes_key="memory_usage")}," MEM ",2),e[6]||(e[6]=Iu("td",null,"/ MAX",-1)),Iu("td",{class:xs(["sortable","load_1min"===i.sorter.column&&"sort"]),onClick:e[3]||(e[3]=t=>o.args.sort_processes_key="load_1min")}," LOAD 1/5/15min ",2),e[7]||(e[7]=Iu("td",null,"Release",-1))])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.vms,((e,r)=>(xu(),Au("tr",{key:r},[Al(Iu("td",null,As(e.engine),513),[[xp,o.showEngine]]),Iu("td",null,As(e.name),1),Iu("td",{class:xs("stopped"==e.status?"careful":"ok")},As(e.status),3),Iu("td",null,As(t.$filters.number(e.cpu_count,1)),1),Iu("td",null,As(t.$filters.number(e.cpu_time,1)),1),Iu("td",null,As(t.$filters.bytes(e.memory_usage)),1),Iu("td",null," / "+As(t.$filters.bytes(e.memory_total)),1),Iu("td",null,As(t.$filters.number(e.load_1min))+"/"+As(t.$filters.number(e.load_5min))+"/"+As(t.$filters.number(e.load_15min)),1),Iu("td",null,As(e.release),1)])))),128))])])])):Ru("v-if",!0)}]]),Xy={key:0,id:"wifi",class:"plugin"},Qy={class:"table table-sm table-borderless margin-bottom"},Zy={scope:"row"};const Yy={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,quality_level:t.quality_level}})).filter(Boolean);return(0,am.orderBy)(t,["ssid"])},hasHotpots(){return this.hotspots.length>0}},methods:{getDecoration(t,e){if(void 0!==this.view[t.ssid][e])return this.view[t.ssid][e].decoration.toLowerCase()}}},Jy=(0,Yd.A)(Yy,[["render",function(t,e,r,n,i,o){return o.hasHotpots?(xu(),Au("section",Xy,[Iu("table",Qy,[e[0]||(e[0]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"WIFI"),Iu("th",{scope:"col",class:"text-end"},"dBm")])],-1)),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.hotspots,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",Zy,As(t.$filters.limitTo(e.ssid,20)),1),Iu("td",{scope:"row",class:xs(["text-end",o.getDecoration(e,"quality_level")])},As(e.quality_level),3)])))),128))])])])):Ru("v-if",!0)}]]),tv=JSON.parse('{"r":["quicklook","cpu","percpu","gpu","mem","memswap","load"],"H":["network","ports","wifi","connections","diskio","fs","irq","folders","raid","smart","sensors"]}'),ev={components:{GlancesHelp:Jd,GlancesPluginAlert:cm,GlancesPluginCloud:mm,GlancesPluginConnections:wm,GlancesPluginCpu:Xm,GlancesPluginDiskio:xf,GlancesPluginContainers:Uf,GlancesPluginFolders:Wf,GlancesPluginFs:rh,GlancesPluginGpu:xh,GlancesPluginHostname:Ah,GlancesPluginIp:jh,GlancesPluginIrq:Bh,GlancesPluginLoad:Gh,GlancesPluginMem:mg,GlancesPluginMemswap:xg,GlancesPluginNetwork:Lg,GlancesPluginNow:qg,GlancesPluginPercpu:Wg,GlancesPluginPorts:ob,GlancesPluginProcess:Qb,GlancesPluginQuicklook:gy,GlancesPluginRaid:ky,GlancesPluginSensors:Ly,GlancesPluginSmart:Dy,GlancesPluginSystem:Uy,GlancesPluginUptime:Hy,GlancesPluginVms:Ky,GlancesPluginWifi:Jy},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},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"},topMenu(){return void 0!==this.config.outputs&&void 0!==this.config.outputs.top_menu?this.config.outputs.top_menu.split(","):tv.r},leftMenu(){return void 0!==this.config.outputs&&void 0!==this.config.outputs.left_menu?this.config.outputs.left_menu.split(","):tv.H}},watch:{title(){document&&(document.title=this.title)}},mounted(){const t=window.__GLANCES__||{},e=isFinite(t["refresh-time"])?parseInt(t["refresh-time"],10):void 0;Fd.init(e),this.setupHotKeys()},beforeUnmount(){Ld.unbind()},methods:{setupHotKeys(){Ld("a",(()=>{this.store.args.sort_processes_key=null})),Ld("c",(()=>{this.store.args.sort_processes_key="cpu_percent"})),Ld("m",(()=>{this.store.args.sort_processes_key="memory_percent"})),Ld("u",(()=>{this.store.args.sort_processes_key="username"})),Ld("p",(()=>{this.store.args.sort_processes_key="name"})),Ld("i",(()=>{this.store.args.sort_processes_key="io_counters"})),Ld("t",(()=>{this.store.args.sort_processes_key="timemillis"})),Ld("shift+A",(()=>{this.store.args.disable_amps=!this.store.args.disable_amps})),Ld("d",(()=>{this.store.args.disable_diskio=!this.store.args.disable_diskio})),Ld("shift+Q",(()=>{this.store.args.enable_irq=!this.store.args.enable_irq})),Ld("f",(()=>{this.store.args.disable_fs=!this.store.args.disable_fs})),Ld("j",(()=>{this.store.args.programs=!this.store.args.programs})),Ld("k",(()=>{this.store.args.disable_connections=!this.store.args.disable_connections})),Ld("n",(()=>{this.store.args.disable_network=!this.store.args.disable_network})),Ld("s",(()=>{this.store.args.disable_sensors=!this.store.args.disable_sensors})),Ld("2",(()=>{this.store.args.disable_left_sidebar=!this.store.args.disable_left_sidebar})),Ld("z",(()=>{this.store.args.disable_process=!this.store.args.disable_process})),Ld("shift+S",(()=>{this.store.args.process_short_name=!this.store.args.process_short_name})),Ld("shift+D",(()=>{this.store.args.disable_containers=!this.store.args.disable_containers})),Ld("b",(()=>{this.store.args.byte=!this.store.args.byte})),Ld("shift+B",(()=>{this.store.args.diskio_iops=!this.store.args.diskio_iops,this.store.args.diskio_iops&&(this.store.args.diskio_latency=!1)})),Ld("shift+L",(()=>{this.store.args.diskio_latency=!this.store.args.diskio_latency,this.store.args.diskio_latency&&(this.store.args.diskio_iops=!1)})),Ld("l",(()=>{this.store.args.disable_alert=!this.store.args.disable_alert})),Ld("1",(()=>{this.store.args.percpu=!this.store.args.percpu})),Ld("h",(()=>{this.store.args.help_tag=!this.store.args.help_tag})),Ld("shift+T",(()=>{this.store.args.network_sum=!this.store.args.network_sum})),Ld("shift+U",(()=>{this.store.args.network_cumul=!this.store.args.network_cumul})),Ld("shift+F",(()=>{this.store.args.fs_free_space=!this.store.args.fs_free_space})),Ld("3",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook})),Ld("6",(()=>{this.store.args.meangpu=!this.store.args.meangpu})),Ld("shift+G",(()=>{this.store.args.disable_gpu=!this.store.args.disable_gpu})),Ld("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})),Ld("shift+I",(()=>{this.store.args.disable_ip=!this.store.args.disable_ip})),Ld("shift+P",(()=>{this.store.args.disable_ports=!this.store.args.disable_ports})),Ld("shift+V",(()=>{this.store.args.disable_vms=!this.store.args.disable_vms})),Ld("shift+W",(()=>{this.store.args.disable_wifi=!this.store.args.disable_wifi})),Ld("0",(()=>{this.store.args.disable_irix=!this.store.args.disable_irix}))}}};const rv=Fp((0,Yd.A)(ev,[["render",function(t,e,r,n,i,o){const s=ec("glances-help"),a=ec("glances-plugin-hostname"),l=ec("glances-plugin-uptime"),c=ec("glances-plugin-system"),u=ec("glances-plugin-ip"),p=ec("glances-plugin-now"),d=ec("glances-plugin-cloud"),m=ec("glances-plugin-quicklook"),f=ec("glances-plugin-cpu"),h=ec("glances-plugin-gpu"),g=ec("glances-plugin-mem"),b=ec("glances-plugin-memswap"),y=ec("glances-plugin-load"),v=ec("glances-plugin-vms"),x=ec("glances-plugin-containers"),w=ec("glances-plugin-process"),_=ec("glances-plugin-alert");return o.dataLoaded?o.args.help_tag?(xu(),Eu(s,{key:1})):(xu(),Au("main",Gp,[Ru(" Display minimal header on low screen size (smarthphone) "),Iu("div",Wp,[Iu("div",Kp,[o.args.disable_system?Ru("v-if",!0):(xu(),Au("div",Xp,[Pu(a,{data:o.data},null,8,["data"])])),o.args.disable_uptime?Ru("v-if",!0):(xu(),Au("div",Qp,[Pu(l,{data:o.data},null,8,["data"])]))])]),Ru(" Display standard header on others screen sizes "),Iu("div",Zp,[Iu("div",Yp,[o.args.disable_system?Ru("v-if",!0):(xu(),Au("div",Jp,[Pu(c,{data:o.data},null,8,["data"])])),o.args.disable_ip?Ru("v-if",!0):(xu(),Au("div",td,[Pu(u,{data:o.data},null,8,["data"])])),o.args.disable_now?Ru("v-if",!0):(xu(),Au("div",ed,[Pu(p,{data:o.data},null,8,["data"])])),o.args.disable_uptime?Ru("v-if",!0):(xu(),Au("div",rd,[Pu(l,{data:o.data},null,8,["data"])]))])]),Iu("div",nd,[o.args.disable_cloud?Ru("v-if",!0):(xu(),Au("div",id,[Pu(d,{data:o.data},null,8,["data"])]))]),Ru(" Display top menu with CPU, MEM, LOAD..."),Iu("div",od,[Ru(" Quicklook "),o.args.disable_quicklook?Ru("v-if",!0):(xu(),Au("div",sd,[Pu(m,{data:o.data},null,8,["data"])])),Ru(" CPU "),o.args.disable_cpu&&o.args.percpu?Ru("v-if",!0):(xu(),Au("div",ad,[Pu(f,{data:o.data},null,8,["data"])])),Ru(' TODO: percpu need to be refactor\n
\n \n
\n
\n \n
'),Ru(" GPU "),!o.args.disable_gpu&&o.hasGpu?(xu(),Au("div",ld,[Pu(h,{data:o.data},null,8,["data"])])):Ru("v-if",!0),Ru(" MEM "),o.args.disable_mem?Ru("v-if",!0):(xu(),Au("div",cd,[Pu(g,{data:o.data},null,8,["data"])])),Ru(" SWAP "),o.args.disable_memswap?Ru("v-if",!0):(xu(),Au("div",ud,[Pu(b,{data:o.data},null,8,["data"])])),Ru(" LOAD "),o.args.disable_load?Ru("v-if",!0):(xu(),Au("div",pd,[Pu(y,{data:o.data},null,8,["data"])]))]),Ru(" Display bottom of the screen with sidebar and processlist "),Iu("div",dd,[Iu("div",md,[o.args.disable_left_sidebar?Ru("v-if",!0):(xu(),Au("div",{key:0,class:xs(["col-3 d-none d-md-block",{"sidebar-min":!o.args.percpu,"sidebar-max":o.args.percpu}])},[(xu(!0),Au(fu,null,oc(o.leftMenu,(t=>{return xu(),Au(fu,null,[o.args[`disable_${t}`]?Ru("v-if",!0):(xu(),Eu((e=`glances-plugin-${t}`,Wo(e)?nc(tc,e,!1)||e:e||rc),{key:0,id:`${t}`,data:o.data},null,8,["id","data"]))],64);var e})),256))],2)),Iu("div",{class:xs(["col",{"sidebar-min":!o.args.percpu,"sidebar-max":o.args.percpu}])},[o.args.disable_vms?Ru("v-if",!0):(xu(),Eu(v,{key:0,data:o.data},null,8,["data"])),o.args.disable_containers?Ru("v-if",!0):(xu(),Eu(x,{key:1,data:o.data},null,8,["data"])),Pu(w,{data:o.data},null,8,["data"]),o.args.disable_alert?Ru("v-if",!0):(xu(),Eu(_,{key:2,data:o.data},null,8,["data"]))],2)])])])):(xu(),Au("div",Vp,e[0]||(e[0]=[Iu("div",{class:"loader"},"Glances is loading...",-1)])))}]]));rv.config.globalProperties.$filters=e,rv.mount("#app")})()})(); \ No newline at end of file +const fd="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function hd(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),r)}function gd(t,e,r,n){t.removeEventListener?t.removeEventListener(e,r,n):t.detachEvent&&t.detachEvent("on".concat(e),r)}function bd(t,e){const r=e.slice(0,e.length-1);for(let e=0;e=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}const vd={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,"-":fd?173:189,"=":fd?61:187,";":fd?59:186,"'":222,"[":219,"]":221,"\\":220},xd={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},wd={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_d={16:!1,18:!1,17:!1,91:!1},kd={};for(let t=1;t<20;t++)vd["f".concat(t)]=111+t;let Sd=[],Ad=null,Ed="all";const Cd=new Map,Td=t=>vd[t.toLowerCase()]||xd[t.toLowerCase()]||t.toUpperCase().charCodeAt(0);function Od(t){Ed=t||"all"}function Dd(){return Ed||"all"}function Id(t){if(void 0===t)Object.keys(kd).forEach((t=>{Array.isArray(kd[t])&&kd[t].forEach((t=>Pd(t))),delete kd[t]})),Md(null);else if(Array.isArray(t))t.forEach((t=>{t.key&&Pd(t)}));else if("object"==typeof t)t.key&&Pd(t);else if("string"==typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n{let{key:e,scope:r,method:n,splitKey:i="+"}=t;yd(e).forEach((t=>{const e=t.split(i),o=e.length,s=e[o-1],a="*"===s?"*":Td(s);if(!kd[a])return;r||(r=Dd());const l=o>1?bd(xd,e):[],c=[];kd[a]=kd[a].filter((t=>{const e=(!n||t.method===n)&&t.scope===r&&function(t,e){const r=t.length>=e.length?t:e,n=t.length>=e.length?e:t;let i=!0;for(let t=0;tMd(t)))}))};function jd(t,e,r,n){if(e.element!==n)return;let i;if(e.scope===r||"all"===e.scope){i=e.mods.length>0;for(const t in _d)Object.prototype.hasOwnProperty.call(_d,t)&&(!_d[t]&&e.mods.indexOf(+t)>-1||_d[t]&&-1===e.mods.indexOf(+t))&&(i=!1);(0!==e.mods.length||_d[16]||_d[18]||_d[17]||_d[91])&&!i&&"*"!==e.shortcut||(e.keys=[],e.keys=e.keys.concat(Sd),!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0)))}}function Nd(t,e){const r=kd["*"];let n=t.keyCode||t.which||t.charCode;if(!Ld.filter.call(this,t))return;if(93!==n&&224!==n||(n=91),-1===Sd.indexOf(n)&&229!==n&&Sd.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach((e=>{const r=wd[e];t[e]&&-1===Sd.indexOf(r)?Sd.push(r):!t[e]&&Sd.indexOf(r)>-1?Sd.splice(Sd.indexOf(r),1):"metaKey"===e&&t[e]&&(Sd=Sd.filter((t=>t in wd||t===n)))})),n in _d){_d[n]=!0;for(const t in xd)xd[t]===n&&(Ld[t]=!0);if(!r)return}for(const e in _d)Object.prototype.hasOwnProperty.call(_d,e)&&(_d[e]=t[wd[e]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===Sd.indexOf(17)&&Sd.push(17),-1===Sd.indexOf(18)&&Sd.push(18),_d[17]=!0,_d[18]=!0);const i=Dd();if(r)for(let n=0;n1&&(i=bd(xd,t)),(t="*"===(t=t[t.length-1])?"*":Td(t))in kd||(kd[t]=[]),kd[t].push({keyup:l,keydown:c,scope:o,mods:i,shortcut:n[a],method:r,key:n[a],splitKey:u,element:s});if(void 0!==s&&window){if(!Cd.has(s)){const t=function(){return Nd(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,s)},e=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event;Nd(t,s),function(t){let e=t.keyCode||t.which||t.charCode;const r=Sd.indexOf(e);if(r>=0&&Sd.splice(r,1),t.key&&"meta"===t.key.toLowerCase()&&Sd.splice(0,Sd.length),93!==e&&224!==e||(e=91),e in _d){_d[e]=!1;for(const t in xd)xd[t]===e&&(Ld[t]=!1)}}(t)};Cd.set(s,{keydownListener:t,keyupListenr:e,capture:p}),hd(s,"keydown",t,p),hd(s,"keyup",e,p)}if(!Ad){const t=()=>{Sd=[]};Ad={listener:t,capture:p},hd(window,"focus",t,p)}}}function Md(t){const e=Object.values(kd).flat();if(e.findIndex((e=>{let{element:r}=e;return r===t}))<0){const{keydownListener:e,keyupListenr:r,capture:n}=Cd.get(t)||{};e&&r&&(gd(t,"keyup",r,n),gd(t,"keydown",e,n),Cd.delete(t))}if(e.length<=0||Cd.size<=0){if(Object.keys(Cd).forEach((t=>{const{keydownListener:e,keyupListenr:r,capture:n}=Cd.get(t)||{};e&&r&&(gd(t,"keyup",r,n),gd(t,"keydown",e,n),Cd.delete(t))})),Cd.clear(),Object.keys(kd).forEach((t=>delete kd[t])),Ad){const{listener:t,capture:e}=Ad;gd(window,"focus",t,e),Ad=null}}}const Rd={getPressedKeyString:function(){return Sd.map((t=>{return e=t,Object.keys(vd).find((t=>vd[t]===e))||(t=>Object.keys(xd).find((e=>xd[e]===t)))(t)||String.fromCharCode(t);var e}))},setScope:Od,getScope:Dd,deleteScope:function(t,e){let r,n;t||(t=Dd());for(const e in kd)if(Object.prototype.hasOwnProperty.call(kd,e))for(r=kd[e],n=0;n{let{element:e}=t;return Md(e)}))}else n++;Dd()===t&&Od(e||"all")},getPressedKeyCodes:function(){return Sd.slice(0)},getAllKeyCodes:function(){const t=[];return Object.keys(kd).forEach((e=>{kd[e].forEach((e=>{let{key:r,scope:n,mods:i,shortcut:o}=e;t.push({scope:n,shortcut:o,mods:i,keys:r.split("+").map((t=>Td(t)))})}))})),t},isPressed:function(t){return"string"==typeof t&&(t=Td(t)),-1!==Sd.indexOf(t)},filter:function(t){const e=t.target||t.srcElement,{tagName:r}=e;let n=!0;const i="INPUT"===r&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(e.type);return(e.isContentEditable||(i||"TEXTAREA"===r||"SELECT"===r)&&!e.readOnly)&&(n=!1),n},trigger:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(kd).forEach((r=>{kd[r].filter((r=>r.scope===e&&r.shortcut===t)).forEach((t=>{t&&t.method&&t.method()}))}))},unbind:Id,keyMap:vd,modifier:xd,modifierMap:wd};for(const t in Rd)Object.prototype.hasOwnProperty.call(Rd,t)&&(Ld[t]=Rd[t]);if("undefined"!=typeof window){const t=window.hotkeys;Ld.noConflict=e=>(e&&window.hotkeys===Ld&&(window.hotkeys=t),Ld),window.hotkeys=Ld}const qd=Ra({args:void 0,config:void 0,data:void 0,status:"IDLE"});var Bd=r(4644),$d=r.n(Bd);const Ud=new class{limits={};limitSuffix=["critical","careful","warning"];setLimits(t){this.limits=t}getLimit(t,e){return null!=this.limits[t]&&null!=this.limits[t][e]?this.limits[t][e]:null}getAlert(t,e,r,n,i){var o=(i=i||!1)?"_log":"",s=100*(r=r||0)/(n=n||100);if(null!=this.limits[t])for(var a=0;a=this.limits[t][l]){var c=l.lastIndexOf("_");return l.substring(c+1)+o}}return"ok"+o}getAlertLog(t,e,r,n){return this.getAlert(t,e,r,n,!0)}};const Fd=new class{data=void 0;init(t=60){let e;const r=()=>(qd.status="PENDING",Promise.all([fetch("api/4/all",{method:"GET"}).then((t=>t.json())),fetch("api/4/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,qd.data=e,qd.status="SUCCESS"})).catch((t=>{console.log(t),qd.status="FAILURE"})).then((()=>{e&&clearTimeout(e),e=setTimeout(r,1e3*t)})));r(),fetch("api/4/all/limits",{method:"GET"}).then((t=>t.json())).then((t=>{Ud.setLimits(t)})),fetch("api/4/args",{method:"GET"}).then((t=>t.json())).then(((t={})=>{qd.args={...qd.args,...t}})),fetch("api/4/config",{method:"GET"}).then((t=>t.json())).then(((t={})=>{qd.config={...qd.config,...t}}))}getData(){return this.data}};const zd=new class{constructor(){this.favico=new($d())({animation:"none"})}badge(t){this.favico.badge(t)}reset(){this.favico.reset()}},Hd={key:0},Vd={class:"container-fluid"},Gd={class:"row"},Wd={class:"col-sm-12 col-lg-24 title"},Kd={class:"row"},Xd={class:"col-sm-12 col-lg-24"},Qd={class:"table table-sm table-borderless table-striped table-hover"};const Zd={data:()=>({help:void 0}),mounted(){fetch("api/4/help",{method:"GET"}).then((t=>t.json())).then((t=>this.help=t))}};var Yd=r(6262);const Jd=(0,Yd.A)(Zd,[["render",function(t,e,r,n,i,o){return i.help?(xu(),Au("div",Hd,[Iu("div",Vd,[Iu("div",Gd,[Iu("div",Wd,As(i.help.version)+" "+As(i.help.psutil_version),1)]),e[0]||(e[0]=Iu("div",{class:"row"}," ",-1)),Iu("div",Kd,[Iu("div",Xd,As(i.help.configuration_file),1)]),e[1]||(e[1]=Iu("div",{class:"row"}," ",-1))]),Iu("table",Qd,[Iu("thead",null,[Iu("tr",null,[Iu("th",null,As(i.help.header_sort.replace(":","")),1),Iu("th",null,As(i.help.header_show_hide.replace(":","")),1),Iu("th",null,As(i.help.header_toggle.replace(":","")),1),Iu("th",null,As(i.help.header_miscellaneous.replace(":","")),1)])]),Iu("tbody",null,[Iu("tr",null,[Iu("td",null,As(i.help.sort_auto),1),Iu("td",null,As(i.help.show_hide_application_monitoring),1),Iu("td",null,As(i.help.toggle_bits_bytes),1),Iu("td",null,As(i.help.misc_erase_process_filter),1)]),Iu("tr",null,[Iu("td",null,As(i.help.sort_cpu),1),Iu("td",null,As(i.help.show_hide_diskio),1),Iu("td",null,As(i.help.toggle_count_rate),1),Iu("td",null,As(i.help.misc_generate_history_graphs),1)]),Iu("tr",null,[Iu("td",null,As(i.help.sort_io_rate),1),Iu("td",null,As(i.help.show_hide_containers),1),Iu("td",null,As(i.help.toggle_used_free),1),Iu("td",null,As(i.help.misc_help),1)]),Iu("tr",null,[Iu("td",null,As(i.help.sort_mem),1),Iu("td",null,As(i.help.show_hide_top_extended_stats),1),Iu("td",null,As(i.help.toggle_bar_sparkline),1),Iu("td",null,As(i.help.misc_accumulate_processes_by_program),1)]),Iu("tr",null,[Iu("td",null,As(i.help.sort_process_name),1),Iu("td",null,As(i.help.show_hide_filesystem),1),Iu("td",null,As(i.help.toggle_separate_combined),1),e[2]||(e[2]=Iu("td",null," ",-1))]),Iu("tr",null,[Iu("td",null,As(i.help.sort_cpu_times),1),Iu("td",null,As(i.help.show_hide_gpu),1),Iu("td",null,As(i.help.toggle_live_cumulative),1),Iu("td",null,As(i.help.misc_reset_processes_summary_min_max),1)]),Iu("tr",null,[Iu("td",null,As(i.help.sort_user),1),Iu("td",null,As(i.help.show_hide_ip),1),Iu("td",null,As(i.help.toggle_linux_percentage),1),Iu("td",null,As(i.help.misc_quit),1)]),Iu("tr",null,[e[3]||(e[3]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_tcp_connection),1),Iu("td",null,As(i.help.toggle_cpu_individual_combined),1),Iu("td",null,As(i.help.misc_reset_history),1)]),Iu("tr",null,[e[4]||(e[4]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_alert),1),Iu("td",null,As(i.help.toggle_gpu_individual_combined),1),Iu("td",null,As(i.help.misc_delete_warning_alerts),1)]),Iu("tr",null,[e[5]||(e[5]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_network),1),Iu("td",null,As(i.help.toggle_short_full),1),Iu("td",null,As(i.help.misc_delete_warning_and_critical_alerts),1)]),Iu("tr",null,[e[6]||(e[6]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.sort_cpu_times),1),e[7]||(e[7]=Iu("td",null," ",-1)),e[8]||(e[8]=Iu("td",null," ",-1))]),Iu("tr",null,[e[9]||(e[9]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_irq),1),e[10]||(e[10]=Iu("td",null," ",-1)),e[11]||(e[11]=Iu("td",null," ",-1))]),Iu("tr",null,[e[12]||(e[12]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_raid_plugin),1),e[13]||(e[13]=Iu("td",null," ",-1)),e[14]||(e[14]=Iu("td",null," ",-1))]),Iu("tr",null,[e[15]||(e[15]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_sensors),1),e[16]||(e[16]=Iu("td",null," ",-1)),e[17]||(e[17]=Iu("td",null," ",-1))]),Iu("tr",null,[e[18]||(e[18]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_wifi_module),1),e[19]||(e[19]=Iu("td",null," ",-1)),e[20]||(e[20]=Iu("td",null," ",-1))]),Iu("tr",null,[e[21]||(e[21]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_processes),1),e[22]||(e[22]=Iu("td",null," ",-1)),e[23]||(e[23]=Iu("td",null," ",-1))]),Iu("tr",null,[e[24]||(e[24]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_left_sidebar),1),e[25]||(e[25]=Iu("td",null," ",-1)),e[26]||(e[26]=Iu("td",null," ",-1))]),Iu("tr",null,[e[27]||(e[27]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_quick_look),1),e[28]||(e[28]=Iu("td",null," ",-1)),e[29]||(e[29]=Iu("td",null," ",-1))]),Iu("tr",null,[e[30]||(e[30]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_cpu_mem_swap),1),e[31]||(e[31]=Iu("td",null," ",-1)),e[32]||(e[32]=Iu("td",null," ",-1))]),Iu("tr",null,[e[33]||(e[33]=Iu("td",null," ",-1)),Iu("td",null,As(i.help.show_hide_all),1),e[34]||(e[34]=Iu("td",null," ",-1)),e[35]||(e[35]=Iu("td",null," ",-1))])])]),e[36]||(e[36]=Mu('
 

For an exhaustive list of key bindings, click here.

 

Press h to came back to Glances.

',5))])):Ru("v-if",!0)}]]),tm={id:"alerts",class:"plugin"},em={key:0,class:"title"},rm={key:1,class:"title"},nm={class:"table table-sm table-borderless"},im={scope:"row"},om={scope:"row"},sm={scope:"row"};var am=r(2543);const lm={props:{data:{type:Object}},computed:{stats(){return this.data.stats.alert},alerts(){return(this.stats||[]).map((t=>{const e={};if(e.state=t.state,e.type=t.type,e.begin=1e3*t.begin,e.end=1e3*t.end,e.ongoing=-1==t.end,e.min=t.min,e.avg=t.avg,e.max=t.max,t.top.length>0&&(e.top=": "+t.top.join(", ")),!e.ongoing){const t=e.end-e.begin,r=parseInt(t/1e3%60),n=parseInt(t/6e4%60),i=parseInt(t/36e5%24);e.duration=(0,am.padStart)(i,2,"0")+":"+(0,am.padStart)(n,2,"0")+":"+(0,am.padStart)(r,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?zd.badge(this.countOngoingAlerts):zd.reset()}},methods:{formatDate(t){const e=(new Date).getTimezoneOffset(),r=Math.trunc(Math.abs(e)/60),n=Math.abs(e%60);let i=e<=0?"+":"-";i+=String(r).padStart(2,"0")+String(n).padStart(2,"0");const o=new Date(t);return String(o.getFullYear())+"-"+String(o.getMonth()+1).padStart(2,"0")+"-"+String(o.getDate()).padStart(2,"0")+" "+String(o.getHours()).padStart(2,"0")+":"+String(o.getMinutes()).padStart(2,"0")+":"+String(o.getSeconds()).padStart(2,"0")+"("+i+")"},clear(){fetch("api/4/events/clear/all",{method:"POST",headers:{"Content-Type":"application/json"}}).then((t=>t.json())).then((t=>product.value=t))}}},cm=(0,Yd.A)(lm,[["render",function(t,e,r,n,i,o){return xu(),Au("section",tm,[o.hasAlerts?(xu(),Au("span",em,[Lu(" Warning or critical alerts (last "+As(o.countAlerts)+" entries) ",1),Iu("span",null,[Iu("button",{class:"button",onClick:e[0]||(e[0]=t=>o.clear())},"Clear alerts")])])):(xu(),Au("span",rm,"No warning or critical alert detected")),Iu("table",nm,[Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.alerts,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",im,[Iu("span",null,As(o.formatDate(e.begin)),1)]),Iu("td",om,[Iu("span",null,"("+As(e.ongoing?"ongoing":e.duration)+")",1)]),Iu("td",sm,[Al(Iu("span",null,As(e.state)+" on ",513),[[xp,!e.ongoing]]),Iu("span",{class:xs(e.state.toLowerCase())},As(e.type),3),Iu("span",null,"("+As(t.$filters.number(e.max,1))+")",1),Iu("span",null,As(e.top),1)])])))),128))])])])}]]),um={key:0,id:"cloud",class:"plugin"},pm={class:"title"};const dm={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cloud},provider(){return void 0!==this.stats.id?`${stats.platform}`:null},instance(){const{stats:t}=this;return void 0!==this.stats.id?`${t.type} instance ${t.name} (${t.region})`:null}}},mm=(0,Yd.A)(dm,[["render",function(t,e,r,n,i,o){return o.instance||o.provider?(xu(),Au("section",um,[Iu("span",pm,As(o.provider),1),Lu(" "+As(o.instance),1)])):Ru("v-if",!0)}]]),fm={id:"connections",class:"plugin"},hm={class:"table table-sm table-borderless margin-bottom"},gm={class:"text-end"},bm={class:"text-end"},ym={class:"text-end"},vm={class:"text-end"};const xm={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()}}},wm=(0,Yd.A)(xm,[["render",function(t,e,r,n,i,o){return xu(),Au("section",fm,[Iu("table",hm,[e[5]||(e[5]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"TCP CONNECTIONS"),Iu("th",{scope:"col",class:"text-end"})])],-1)),Iu("tbody",null,[Iu("tr",null,[e[0]||(e[0]=Iu("td",{scope:"row"},"Listen",-1)),Iu("td",gm,As(o.listen),1)]),Iu("tr",null,[e[1]||(e[1]=Iu("td",{scope:"row"},"Initiated",-1)),Iu("td",bm,As(o.initiated),1)]),Iu("tr",null,[e[2]||(e[2]=Iu("td",{scope:"row"},"Established",-1)),Iu("td",ym,As(o.established),1)]),Iu("tr",null,[e[3]||(e[3]=Iu("td",{scope:"row"},"Terminated",-1)),Iu("td",vm,As(o.terminated),1)]),Iu("tr",null,[e[4]||(e[4]=Iu("td",{scope:"row"},"Tracked",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("nf_conntrack_percent")])},As(o.tracked.count)+"/"+As(o.tracked.max),3)])])])])}]]),_m={id:"cpu",class:"plugin"},km={class:"table-responsive"},Sm={class:"table-sm table-borderless"},Am={class:"justify-content-between"},Em={scope:"col"},Cm={class:"table table-sm table-borderless"},Tm={key:0,scope:"col"},Om={class:"d-none d-xl-block d-xxl-block"},Dm={class:"table table-sm table-borderless"},Im={scope:"col"},Pm={scope:"col",class:"text-end"},jm={scope:"col"},Nm={scope:"col",class:"text-end"},Lm={scope:"col"},Mm={scope:"col",class:"text-end"},Rm={key:0,scope:"col"},qm={scope:"col"},Bm={class:"d-none d-xxl-block"},$m={class:"table table-sm table-borderless"},Um={key:0,scope:"col"},Fm={scope:"col"},zm={scope:"col",class:"text-end"},Hm={key:0,scope:"col"},Vm={key:1,scope:"col",class:"text-end"},Gm={key:0,scope:"col"},Wm={key:1,scope:"col",class:"text-end"};const Km={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},guest(){return this.stats.guest},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()}}},Xm=(0,Yd.A)(Km,[["render",function(t,e,r,n,i,o){return xu(),Au("section",_m,[Ru(" d-none d-xxl-block "),Iu("div",km,[Iu("table",Sm,[Iu("tbody",null,[Iu("tr",Am,[Iu("td",Em,[Iu("table",Cm,[Iu("tbody",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"CPU",-1)),Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("total")])},[Iu("span",null,As(o.total)+"%",1)],2)]),Iu("tr",null,[e[1]||(e[1]=Iu("td",{scope:"col"},"user:",-1)),Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("user")])},[Iu("span",null,As(o.user)+"%",1)],2)]),Iu("tr",null,[e[2]||(e[2]=Iu("td",{scope:"col"},"system:",-1)),Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("system")])},[Iu("span",null,As(o.system)+"%",1)],2)]),Iu("tr",null,[null!=o.iowait?(xu(),Au("td",Tm,"iowait:")):Ru("v-if",!0),null!=o.iowait?(xu(),Au("td",{key:1,scope:"col",class:xs(["text-end",o.getDecoration("iowait")])},[Iu("span",null,As(o.iowait)+"%",1)],2)):Ru("v-if",!0)])])])]),Iu("td",null,[Iu("template",Om,[Iu("table",Dm,[Iu("tbody",null,[Iu("tr",null,[Al(Iu("td",Im,"idle:",512),[[xp,null!=o.idle]]),Al(Iu("td",Pm,[Iu("span",null,As(o.idle)+"%",1)],512),[[xp,null!=o.idle]])]),Iu("tr",null,[Al(Iu("td",jm,"irq:",512),[[xp,null!=o.irq]]),Al(Iu("td",Nm,[Iu("span",null,As(o.irq)+"%",1)],512),[[xp,null!=o.irq]])]),Iu("tr",null,[Al(Iu("td",Lm,"nice:",512),[[xp,null!=o.nice]]),Al(Iu("td",Mm,[Iu("span",null,As(o.nice)+"%",1)],512),[[xp,null!=o.nice]])]),Iu("tr",null,[null==o.iowait&&null!=o.dpc?(xu(),Au("td",Rm,"dpc:")):Ru("v-if",!0),null==o.iowait&&null!=o.dpc?(xu(),Au("td",{key:1,scope:"col",class:xs(["text-end",o.getDecoration("dpc")])},[Iu("span",null,As(o.dpc)+"%",1)],2)):Ru("v-if",!0),Al(Iu("td",qm,"steal:",512),[[xp,null!=o.steal]]),Al(Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("steal")])},[Iu("span",null,As(o.steal)+"%",1)],2),[[xp,null!=o.steal]])])])])])]),Iu("td",null,[Iu("template",Bm,[Iu("table",$m,[Iu("tbody",null,[Iu("tr",null,[null!=o.nice&&null!=o.ctx_switches?(xu(),Au("td",Um," ctx_sw:")):Ru("v-if",!0),null!=o.nice&&null!=o.ctx_switches?(xu(),Au("td",{key:1,scope:"col",class:xs(["text-end",o.getDecoration("ctx_switches")])},[Iu("span",null,As(o.ctx_switches),1)],2)):Ru("v-if",!0)]),Iu("tr",null,[Al(Iu("td",Fm,"inter:",512),[[xp,null!=o.interrupts]]),Al(Iu("td",zm,[Iu("span",null,As(o.interrupts),1)],512),[[xp,null!=o.interrupts]])]),Iu("tr",null,[o.isWindows||o.isSunOS||null==o.soft_interrupts?Ru("v-if",!0):(xu(),Au("td",Hm,"sw_int: ")),o.isWindows||o.isSunOS||null==o.soft_interrupts?Ru("v-if",!0):(xu(),Au("td",Vm,[Iu("span",null,As(o.soft_interrupts),1)]))]),Iu("tr",null,[o.isLinux&&null!=o.guest?(xu(),Au("td",Gm,"guest:")):Ru("v-if",!0),o.isLinux&&null!=o.guest?(xu(),Au("td",Wm,[Iu("span",null,As(o.guest)+"%",1)])):Ru("v-if",!0)])])])])])])])])])])}]]),Qm={key:0,id:"diskio",class:"plugin"},Zm={class:"table table-sm table-borderless margin-bottom"},Ym={scope:"col",class:"text-end w-25"},Jm={scope:"col",class:"text-end w-25"},tf={scope:"col",class:"text-end w-25"},ef={scope:"col",class:"text-end w-25"},rf={scope:"col",class:"text-end w-25"},nf={scope:"col",class:"text-end w-25"},of={scope:"row",class:"text-truncate"};var sf=r(4728),af=r.n(sf);function lf(t,e){return cf(t=8*Math.round(t),e)+"b"}function cf(t,e){if(e=e||!1,isNaN(parseFloat(t))||!isFinite(t)||0==t)return t;const r=["Y","Z","E","P","T","G","M","K"],n={Y:12089258196146292e8,Z:11805916207174113e5,E:0x1000000000000000,P:0x4000000000000,T:1099511627776,G:1073741824,M:1048576,K:1024};for(var i=0;i1){var a=0;return s<10?a=2:s<100&&(a=1),e?a="MK"==o?0:(0,am.min)([1,a]):"K"==o&&(a=0),parseFloat(s).toFixed(a)+o}}return t.toFixed(0)}function uf(t){return void 0===t||""===t?"?":t}function pf(t,e,r){return e=e||0,r=r||" ",String(t).padStart(e,r)}function df(t,e){return"function"!=typeof t.slice&&(t=String(t)),t.slice(0,e)}function mf(t,e,r=!0){return e=e||8,t.length>e?r?t.substring(0,e-1)+"_":"_"+t.substring(t.length-e+1):t}function ff(t){if(void 0===t)return t;var e=function(t){var e=document.createElement("div");return e.innerText=t,e.innerHTML}(t),r=e.replace(/\n/g,"
");return af()(r)}function hf(t,e){return void 0===t||isNaN(t)?"-":new Intl.NumberFormat("en-US","number"==typeof e?{maximumFractionDigits:e}:e).format(t)}function gf(t){for(var e=0,r=0;r`${t}: ${e}`)).join(" / ")}const vf={props:{data:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.diskio},view(){return this.data.views.diskio},disks(){const t=this.stats.map((t=>({name:t.disk_name,alias:void 0!==t.alias?t.alias:null,bitrate:{txps:cf(t.read_bytes_rate_per_sec),rxps:cf(t.write_bytes_rate_per_sec)},count:{txps:cf(t.read_count_rate_per_sec),rxps:cf(t.write_count_rate_per_sec)},latency:{txps:cf(t.read_latency),rxps:cf(t.write_latency)}}))).filter((t=>{const e=this.view[t.name].read_bytes_rate_per_sec,r=this.view[t.name].write_bytes_rate_per_sec;return!(e&&!1!==e.hidden||r&&!1!==r.hidden)}));return(0,am.orderBy)(t,["name"])},hasDisks(){return this.disks.length>0}},methods:{getDecoration(t,e){return null==this.view[t][e]?null==this.view[e]?void 0:this.view[e].decoration.toLowerCase():this.view[t][e].decoration.toLowerCase()}}},xf=(0,Yd.A)(vf,[["render",function(t,e,r,n,i,o){return o.hasDisks?(xu(),Au("section",Qm,[Iu("table",Zm,[Iu("thead",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"DISK I/O",-1)),Al(Iu("th",Ym,"Rps",512),[[xp,!o.args.diskio_iops&&!o.args.diskio_latency]]),Al(Iu("th",Jm,"Wps",512),[[xp,!o.args.diskio_iops&&!o.args.diskio_latency]]),Al(Iu("th",tf,"ms/opR",512),[[xp,o.args.diskio_latency]]),Al(Iu("th",ef,"ms/opW",512),[[xp,o.args.diskio_latency]]),Al(Iu("th",rf,"IORps",512),[[xp,o.args.diskio_iops]]),Al(Iu("th",nf,"IOWps",512),[[xp,o.args.diskio_iops]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.disks,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",of,As(t.$filters.minSize(e.alias?e.alias:e.name,16)),1),Al(Iu("td",{class:xs(["text-end w-25",o.getDecoration(e.name,"write_bytes_rate_per_sec")])},As(e.bitrate.txps),3),[[xp,!o.args.diskio_iops&&!o.args.diskio_latency]]),Al(Iu("td",{class:xs(["text-end w-25",o.getDecoration(e.name,"read_bytes_rate_per_sec")])},As(e.bitrate.rxps),3),[[xp,!o.args.diskio_iops&&!o.args.diskio_latency]]),Al(Iu("td",{class:xs(["text-end w-25",o.getDecoration(e.name,"write_latency")])},As(e.latency.txps),3),[[xp,o.args.diskio_latency]]),Al(Iu("td",{class:xs(["text-end w-25",o.getDecoration(e.name,"read_latency")])},As(e.latency.rxps),3),[[xp,o.args.diskio_latency]]),Al(Iu("td",{class:"text-end w-25"},As(e.count.txps),513),[[xp,o.args.diskio_iops]]),Al(Iu("td",{class:"text-end w-25"},As(e.count.rxps),513),[[xp,o.args.diskio_iops]])])))),128))])])])):Ru("v-if",!0)}]]),wf={key:0,id:"containers",class:"plugin"},_f={class:"table-responsive d-md-none"},kf={class:"table table-sm table-borderless table-striped table-hover"},Sf={scope:"col"},Af={scope:"col"},Ef={scope:"col"},Cf={scope:"col"},Tf={class:"table-responsive d-none d-md-block"},Of={class:"table table-sm table-borderless table-striped table-hover"},Df={scope:"col"},If={scope:"col"},Pf={scope:"col"},jf={scope:"col"},Nf={scope:"col"},Lf={scope:"col"},Mf={scope:"col"},Rf={scope:"col"},qf={scope:"col"},Bf={scope:"col"};const $f={props:{data:{type:Object}},data:()=>({store:qd,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.containers},views(){return this.data.views.containers},containers(){const{sorter:t}=this,e=(this.stats||[]).map((t=>{let e;return null!=t.memory_usage?(e=t.memory_usage,null!=t.memory_inactive_file&&(e-=t.memory_inactive_file)):e=void 0,{id:t.id,name:t.name,status:t.status,uptime:t.uptime,cpu_percent:t.cpu.total,memory_usage:e,limit:t.memory.limit,io_rx:t.io_rx,io_wx:t.io_wx,network_rx:t.network_rx,network_tx:t.network_tx,command:t.command,image:t.image,engine:t.engine,pod_id:t.pod_id}}));return(0,am.orderBy)(e,[t.column].map((t=>e=>e["memory_percent"===t?"memory_usage":t]??-1/0),[]),[t.isReverseColumn(t.column)?"desc":"asc"])},showEngine(){return this.views.show_engine_name},showPod(){return this.views.show_pod_name}},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}})}}},methods:{getDisableStats:()=>Ud.getLimit("containers","containers_disable_stats")||[]}},Uf=(0,Yd.A)($f,[["render",function(t,e,r,n,i,o){return o.containers.length?(xu(),Au("section",wf,[e[6]||(e[6]=Iu("span",{class:"title"},"CONTAINERS",-1)),Al(Iu("span",null,As(o.containers.length)+" sorted by "+As(i.sorter.getColumnLabel(i.sorter.column)),513),[[xp,o.containers.length>1]]),Iu("div",_f,[Iu("table",kf,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",Sf,"Pod",512),[[xp,o.showPod]]),Al(Iu("td",{scope:"col",class:xs(["sortable","name"===i.sorter.column&&"sort"]),onClick:e[0]||(e[0]=t=>o.args.sort_processes_key="name")}," Name ",2),[[xp,!o.getDisableStats().includes("name")]]),Al(Iu("td",Af,"Status",512),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","cpu_percent"===i.sorter.column&&"sort"]),onClick:e[1]||(e[1]=t=>o.args.sort_processes_key="cpu_percent")}," CPU% ",2),[[xp,!o.getDisableStats().includes("cpu")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","memory_percent"===i.sorter.column&&"sort"]),onClick:e[2]||(e[2]=t=>o.args.sort_processes_key="memory_percent")}," MEM ",2),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",Ef,"MAX",512),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",Cf,"Command",512),[[xp,!o.getDisableStats().includes("command")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.containers,((e,r)=>(xu(),Au("tr",{key:r},[Al(Iu("td",{scope:"row"},As(e.pod_id||"-"),513),[[xp,o.showPod]]),Al(Iu("td",{scope:"row"},As(e.name),513),[[xp,!o.getDisableStats().includes("name")]]),Al(Iu("td",{scope:"row",class:xs(["Paused"===e.status&&"careful","exited"===e.status&&"warning",!["Paused","exited"].includes(e.status)&&"ok"])},As(e.status),3),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"row"},As(t.$filters.number(e.cpu_percent,1)),513),[[xp,!o.getDisableStats().includes("cpu")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.memory_usage??NaN)?"-":t.$filters.bytes(e.memory_usage)),513),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.limit??NaN)?"-":t.$filters.bytes(e.limit)),513),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.command),513),[[xp,!o.getDisableStats().includes("command")]])])))),128))])])]),Iu("div",Tf,[Iu("table",Of,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",Df,"Engine",512),[[xp,o.showEngine]]),Al(Iu("td",If,"Pod",512),[[xp,o.showPod]]),Al(Iu("td",{scope:"col",class:xs(["sortable","name"===i.sorter.column&&"sort"]),onClick:e[3]||(e[3]=t=>o.args.sort_processes_key="name")}," Name ",2),[[xp,!o.getDisableStats().includes("name")]]),Al(Iu("td",Pf,"Status",512),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",jf,"Uptime",512),[[xp,!o.getDisableStats().includes("uptime")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","cpu_percent"===i.sorter.column&&"sort"]),onClick:e[4]||(e[4]=t=>o.args.sort_processes_key="cpu_percent")}," CPU% ",2),[[xp,!o.getDisableStats().includes("cpu")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","memory_percent"===i.sorter.column&&"sort"]),onClick:e[5]||(e[5]=t=>o.args.sort_processes_key="memory_percent")}," MEM ",2),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",Nf,"MAX",512),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",Lf,"IORps",512),[[xp,!o.getDisableStats().includes("diskio")]]),Al(Iu("td",Mf,"IOWps",512),[[xp,!o.getDisableStats().includes("diskio")]]),Al(Iu("td",Rf,"RXps",512),[[xp,!o.getDisableStats().includes("networkio")]]),Al(Iu("td",qf,"TXps",512),[[xp,!o.getDisableStats().includes("networkio")]]),Al(Iu("td",Bf,"Command",512),[[xp,!o.getDisableStats().includes("command")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.containers,((e,r)=>(xu(),Au("tr",{key:r},[Al(Iu("td",{scope:"row"},As(e.engine),513),[[xp,o.showEngine]]),Al(Iu("td",{scope:"row"},As(e.pod_id||"-"),513),[[xp,o.showPod]]),Al(Iu("td",{scope:"row"},As(e.name),513),[[xp,!o.getDisableStats().includes("name")]]),Al(Iu("td",{scope:"row",class:xs(["Paused"===e.status&&"careful","exited"===e.status&&"warning",!["Paused","exited"].includes(e.status)&&"ok"])},As(e.status),3),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"row"},As(e.uptime),513),[[xp,!o.getDisableStats().includes("uptime")]]),Al(Iu("td",{scope:"row"},As(t.$filters.number(e.cpu_percent,1)),513),[[xp,!o.getDisableStats().includes("cpu")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.memory_usage??NaN)?"-":t.$filters.bytes(e.memory_usage)),513),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.limit??NaN)?"-":t.$filters.bytes(e.limit)),513),[[xp,!o.getDisableStats().includes("mem")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.io_rx??NaN)?"-":t.$filters.bytes(e.io_rx)),513),[[xp,!o.getDisableStats().includes("iodisk")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.io_wx??NaN)?"-":t.$filters.bytes(e.io_wx)),513),[[xp,!o.getDisableStats().includes("iodisk")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.network_rx??NaN)?"-":t.$filters.bits(e.network_rx)),513),[[xp,!o.getDisableStats().includes("networkio")]]),Al(Iu("td",{scope:"row"},As(isNaN(e.network_tx??NaN)?"-":t.$filters.bits(e.network_tx)),513),[[xp,!o.getDisableStats().includes("networkio")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.command),513),[[xp,!o.getDisableStats().includes("command")]])])))),128))])])])])):Ru("v-if",!0)}]]),Ff={key:0,id:"folders",class:"plugin"},zf={class:"table table-sm table-borderless margin-bottom"},Hf={scope:"row"},Vf={key:0,class:"visible-lg-inline"};const Gf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.folders},folders(){return this.stats.map((t=>({path:t.path,size:t.size,errno:t.errno,careful:t.careful,warning:t.warning,critical:t.critical})))},hasFolders(){return this.folders.length>0}},methods:{getDecoration:t=>t.errno>0?"error":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"}},Wf=(0,Yd.A)(Gf,[["render",function(t,e,r,n,i,o){return o.hasFolders?(xu(),Au("section",Ff,[Iu("table",zf,[e[0]||(e[0]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"FOLDERS"),Iu("th",{scope:"col",class:"text-end"},"Size")])],-1)),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.folders,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",Hf,As(e.path),1),Iu("td",{class:xs(["text-end",o.getDecoration(e)])},[e.errno>0?(xu(),Au("span",Vf,"?")):Ru("v-if",!0),Lu(" "+As(t.$filters.bytes(e.size)),1)],2)])))),128))])])])):Ru("v-if",!0)}]]),Kf={key:0,id:"fs",class:"plugin"},Xf={class:"table table-sm table-borderless margin-bottom"},Qf={key:0,scope:"col",class:"text-end w-25"},Zf={key:1,scope:"col",class:"text-end w-25"},Yf={scope:"row"},Jf={key:0,class:"visible-lg-inline"},th={scope:"row",class:"text-end"};const eh={props:{data:{type:Object}},data:()=>({store:qd}),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=>({name:t.device_name,mountPoint:t.mnt_point,percent:t.percent,size:t.size,used:t.used,free:t.free,alias:void 0!==t.alias?t.alias:null})));return(0,am.orderBy)(t,["mnt_point"])},hasFs(){return this.fileSystems.length>0}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},rh=(0,Yd.A)(eh,[["render",function(t,e,r,n,i,o){return o.hasFs?(xu(),Au("section",Kf,[Iu("table",Xf,[Iu("thead",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"FILE SYSTEM",-1)),o.args.fs_free_space?(xu(),Au("th",Zf,"Free")):(xu(),Au("th",Qf,"Used")),e[1]||(e[1]=Iu("th",{scope:"col",class:"text-end w-25"},"Total",-1))])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.fileSystems,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",Yf,[Lu(As(t.$filters.minSize(e.alias?e.alias:e.mountPoint,16,t.begin=!1))+" ",1),(e.alias?e.alias:e.mountPoint).length+e.name.length<=15?(xu(),Au("span",Jf," ("+As(e.name)+") ",1)):Ru("v-if",!0)]),o.args.fs_free_space?(xu(),Au("td",{key:1,scope:"row",class:xs(["text-end",o.getDecoration(e.mountPoint,"used")])},As(t.$filters.bytes(e.free)),3)):(xu(),Au("td",{key:0,scope:"row",class:xs(["text-end",o.getDecoration(e.mountPoint,"used")])},As(t.$filters.bytes(e.used)),3)),Iu("td",th,As(t.$filters.bytes(e.size)),1)])))),128))])])])):Ru("v-if",!0)}]]),nh={key:0,id:"gpu",class:"plugin"},ih={class:"title text-truncate"},oh={key:0,class:"table-responsive"},sh={key:1,class:"col text-end"},ah={key:1,class:"col text-end"},lh={key:1,class:"col text-end"},ch={key:1,class:"table-responsive"},uh={class:"table table-sm table-borderless"},ph={class:"col"},dh={key:1,class:"col"},mh={key:3,class:"col text-end"},fh={key:2,class:"table-responsive"},hh={class:"table table-sm table-borderless"},gh={key:1,class:"col"},bh={key:1,class:"col"},yh={key:1,class:"col"};const vh={props:{data:{type:Object}},data:()=>({store:qd}),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(const r of e)t.proc+=r.proc,t.mem+=r.mem,t.temperature+=r.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=>"DEFAULT"}},xh=(0,Yd.A)(vh,[["render",function(t,e,r,n,i,o){return null!=o.gpus?(xu(),Au("section",nh,[Iu("div",ih,As(o.name),1),Ru(" single gpu "),1===o.gpus.length?(xu(),Au("div",oh,[(xu(!0),Au(fu,null,oc(o.gpus,((r,n)=>(xu(),Au("table",{key:n,class:"table table-sm table-borderless"},[Iu("tbody",null,[Iu("tr",null,[e[1]||(e[1]=Iu("td",{class:"col"},"proc:",-1)),null!=r.proc?(xu(),Au("td",{key:0,class:xs(["col text-end",o.getDecoration(r.gpu_id,"proc")])},[Iu("span",null,As(t.$filters.number(r.proc,0))+"%",1)],2)):Ru("v-if",!0),null==r.proc?(xu(),Au("td",sh,e[0]||(e[0]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)]),Iu("tr",null,[e[3]||(e[3]=Iu("td",{class:"col"},"mem:",-1)),null!=r.mem?(xu(),Au("td",{key:0,class:xs(["col text-end",o.getDecoration(r.gpu_id,"mem")])},[Iu("span",null,As(t.$filters.number(r.mem,0))+"%",1)],2)):Ru("v-if",!0),null==r.mem?(xu(),Au("td",ah,e[2]||(e[2]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)]),Iu("tr",null,[e[5]||(e[5]=Iu("td",{class:"col"},"temp:",-1)),null!=r.temperature?(xu(),Au("td",{key:0,class:xs(["col text-end",o.getDecoration(r.gpu_id,"temperature")])},[Iu("span",null,As(t.$filters.number(r.temperature,0)),1)],2)):Ru("v-if",!0),null==r.temperature?(xu(),Au("td",lh,e[4]||(e[4]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)])])])))),128))])):Ru("v-if",!0),Ru(" multiple gpus - one line per gpu (no mean) "),!o.args.meangpu&&o.gpus.length>1?(xu(),Au("div",ch,[Iu("table",uh,[Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.gpus,((r,n)=>(xu(),Au("tr",{key:n},[Iu("td",ph,As(r.gpu_id)+":",1),null!=r.proc?(xu(),Au("td",{key:0,class:xs(["col",o.getDecoration(r.gpu_id,"proc")])},[Iu("span",null,As(t.$filters.number(r.proc,0))+"%",1)],2)):Ru("v-if",!0),null==r.proc?(xu(),Au("td",dh,e[6]||(e[6]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0),e[8]||(e[8]=Iu("td",{class:"col"},"mem:",-1)),null!=r.mem?(xu(),Au("td",{key:2,class:xs(["col text-end",o.getDecoration(r.gpu_id,"mem")])},[Iu("span",null,As(t.$filters.number(r.mem,0))+"% ",1)],2)):Ru("v-if",!0),null==r.mem?(xu(),Au("td",mh,e[7]||(e[7]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)])))),128))])])])):Ru("v-if",!0),Ru(" multiple gpus - mean "),o.args.meangpu&&o.gpus.length>1?(xu(),Au("div",fh,[Iu("table",hh,[Iu("tbody",null,[Iu("tr",null,[e[10]||(e[10]=Iu("td",{class:"col"},"proc mean:",-1)),null!=o.mean.proc?(xu(),Au("td",{key:0,class:xs(["col",o.getMeanDecoration("proc")])},[Iu("span",null,As(t.$filters.number(o.mean.proc,0))+"%",1)],2)):Ru("v-if",!0),null==o.mean.proc?(xu(),Au("td",gh,e[9]||(e[9]=[Iu("span",null,"N/A",-1),Lu(">")]))):Ru("v-if",!0)]),Iu("tr",null,[e[12]||(e[12]=Iu("td",{class:"col"},"mem mean:",-1)),null!=o.mean.mem?(xu(),Au("td",{key:0,class:xs(["col",o.getMeanDecoration("mem")])},[Iu("span",null,As(t.$filters.number(o.mean.mem,0))+"%",1)],2)):Ru("v-if",!0),null==o.mean.mem?(xu(),Au("td",bh,e[11]||(e[11]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)]),Iu("tr",null,[e[14]||(e[14]=Iu("td",{class:"col"},"temp mean:",-1)),null!=o.mean.temperature?(xu(),Au("td",{key:0,class:xs(["col",o.getMeanDecoration("temperature")])},[Iu("span",null,As(t.$filters.number(o.mean.temperature,0))+"°C",1)],2)):Ru("v-if",!0),null==o.mean.temperature?(xu(),Au("td",yh,e[13]||(e[13]=[Iu("span",null,"N/A",-1)]))):Ru("v-if",!0)])])])])):Ru("v-if",!0)])):Ru("v-if",!0)}]]),wh={id:"system",class:"plugin"},_h={key:0,class:"critical"},kh={class:"title"};const Sh={props:{data:{type:Object}},data:()=>({store:qd}),computed:{stats(){return this.data.stats.system},hostname(){return this.stats.hostname},isDisconnected(){return"FAILURE"===this.store.status}}},Ah=(0,Yd.A)(Sh,[["render",function(t,e,r,n,i,o){return xu(),Au("section",wh,[o.isDisconnected?(xu(),Au("span",_h,"Disconnected from")):Ru("v-if",!0),Iu("span",kh,As(o.hostname),1)])}]]),Eh={key:0,id:"ip",class:"plugin"},Ch={key:0,class:"title"},Th={key:1},Oh={key:2,class:"title"},Dh={key:3},Ih={key:4,class:"text-truncate"};const Ph={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}}},jh=(0,Yd.A)(Ph,[["render",function(t,e,r,n,i,o){return o.address?(xu(),Au("section",Eh,[o.address?(xu(),Au("span",Ch,"IP")):Ru("v-if",!0),o.address?(xu(),Au("span",Th,As(o.address)+"/"+As(o.maskCdir),1)):Ru("v-if",!0),o.publicAddress?(xu(),Au("span",Oh,"Pub")):Ru("v-if",!0),o.publicAddress?(xu(),Au("span",Dh,As(o.publicAddress),1)):Ru("v-if",!0),o.publicInfo?(xu(),Au("span",Ih,As(o.publicInfo),1)):Ru("v-if",!0)])):Ru("v-if",!0)}]]),Nh={id:"irq",class:"plugin"},Lh={class:"table table-sm table-borderless margin-bottom"},Mh={scope:"row"},Rh={scope:"row",class:"text-end"};const qh={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})))}}},Bh=(0,Yd.A)(qh,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Nh,[Iu("table",Lh,[e[0]||(e[0]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"IRQ"),Iu("th",{scope:"col",class:"text-end"},"Rate/s")])],-1)),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.irqs,((t,e)=>(xu(),Au("tr",{key:e},[Iu("td",Mh,As(t.irq_line),1),Iu("td",Rh,As(t.irq_rate),1)])))),128))])])])}]]),$h={key:0,id:"load",class:"plugin"},Uh={class:"table-responsive"},Fh={class:"table table-sm table-borderless"},zh={scope:"col",class:"text-end"},Hh={class:"text-end"};const Vh={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()}}},Gh=(0,Yd.A)(Vh,[["render",function(t,e,r,n,i,o){return null!=o.cpucore?(xu(),Au("section",$h,[Iu("div",Uh,[Iu("table",Fh,[Iu("thead",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"LOAD",-1)),Iu("td",zh,As(o.cpucore)+"-core",1)])]),Iu("tbody",null,[Iu("tr",null,[e[1]||(e[1]=Iu("td",{scope:"row"},"1 min:",-1)),Iu("td",Hh,[Iu("span",null,As(t.$filters.number(o.min1,2)),1)])]),Iu("tr",null,[e[2]||(e[2]=Iu("td",{scope:"row"},"5 min:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("min5")])},[Iu("span",null,As(t.$filters.number(o.min5,2)),1)],2)]),Iu("tr",null,[e[3]||(e[3]=Iu("td",{scope:"row"},"15 min:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("min15")])},[Iu("span",null,As(t.$filters.number(o.min15,2)),1)],2)])])])])])):Ru("v-if",!0)}]]),Wh={id:"mem",class:"plugin"},Kh={class:"table-responsive"},Xh={class:"table-sm table-borderless"},Qh={class:"justify-content-between"},Zh={scope:"col"},Yh={class:"table table-sm table-borderless"},Jh={class:"text-end"},tg={key:0},eg={key:1},rg={class:"d-none d-xl-block d-xxl-block"},ng={class:"table table-sm table-borderless"},ig={scope:"col"},og={scope:"col"},sg={scope:"col"},ag={scope:"col"},lg={scope:"col"},cg={scope:"col"},ug={scope:"col"},pg={scope:"col"};const dg={props:{data:{type:Object}},data:()=>({store:qd}),computed:{config(){return this.store.config||{}},available_args(){return this.config.mem.available||!1},stats(){return this.data.stats.mem},view(){return this.data.views.mem},percent(){return this.stats.percent.toFixed(2)},total(){return this.stats.total},used(){return this.stats.used},available(){return this.stats.available},free(){return this.stats.free},active(){return this.stats.active},inactive(){return this.stats.inactive},buffers(){return this.stats.buffers},cached(){return this.stats.cached}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},mg=(0,Yd.A)(dg,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Wh,[Ru(" d-none d-xxl-block "),Iu("div",Kh,[Iu("table",Xh,[Iu("tbody",null,[Iu("tr",Qh,[Iu("td",Zh,[Iu("table",Yh,[Iu("tbody",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"MEM",-1)),Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("percent")])},[Iu("span",null,As(o.percent)+"%",1)],2)]),Iu("tr",null,[e[1]||(e[1]=Iu("td",{scope:"row"},"total:",-1)),Iu("td",Jh,[Iu("span",null,As(t.$filters.bytes(o.total)),1)])]),o.available_args?Ru("v-if",!0):(xu(),Au("tr",tg,[e[2]||(e[2]=Iu("td",{scope:"row"},"used:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("used")])},[Iu("span",null,As(t.$filters.bytes(o.used,2)),1)],2)])),o.available_args?(xu(),Au("tr",eg,[e[3]||(e[3]=Iu("td",{scope:"row"},"avail:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("available")])},[Iu("span",null,As(t.$filters.bytes(o.available,2)),1)],2)])):Ru("v-if",!0),Iu("tr",null,[e[4]||(e[4]=Iu("td",{scope:"row"},"free:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("free")])},[Iu("span",null,As(t.$filters.bytes(o.free,2)),1)],2)])])])]),Iu("td",null,[Iu("template",rg,[Iu("table",ng,[Iu("tbody",null,[Iu("tr",null,[Al(Iu("td",ig," active: ",512),[[xp,null!=o.active]]),Al(Iu("td",og,[Iu("span",null,As(t.$filters.bytes(o.active)),1)],512),[[xp,null!=o.active]])]),Iu("tr",null,[Al(Iu("td",sg," inactive: ",512),[[xp,null!=o.inactive]]),Al(Iu("td",ag,[Iu("span",null,As(t.$filters.bytes(o.inactive)),1)],512),[[xp,null!=o.inactive]])]),Iu("tr",null,[Al(Iu("td",lg," buffers: ",512),[[xp,null!=o.buffers]]),Al(Iu("td",cg,[Iu("span",null,As(t.$filters.bytes(o.buffers)),1)],512),[[xp,null!=o.buffers]])]),Iu("tr",null,[Al(Iu("td",ug," cached: ",512),[[xp,null!=o.cached]]),Al(Iu("td",pg,[Iu("span",null,As(t.$filters.bytes(o.cached)),1)],512),[[xp,null!=o.cached]])])])])])])])])])])])}]]),fg={id:"memswap",class:"plugin"},hg={class:"table-responsive"},gg={class:"table table-sm table-borderless"},bg={class:"text-end"},yg={class:"text-end"};const vg={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()}}},xg=(0,Yd.A)(vg,[["render",function(t,e,r,n,i,o){return xu(),Au("section",fg,[Iu("div",hg,[Iu("table",gg,[Iu("thead",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"SWAP",-1)),Iu("td",{scope:"col",class:xs(["text-end",o.getDecoration("percent")])},[Iu("span",null,As(o.percent)+"%",1)],2)])]),Iu("tbody",null,[Iu("tr",null,[e[1]||(e[1]=Iu("td",{scope:"row"},"total:",-1)),Iu("td",bg,[Iu("span",null,As(t.$filters.bytes(o.total)),1)])]),Iu("tr",null,[e[2]||(e[2]=Iu("td",{scope:"row"},"used:",-1)),Iu("td",{class:xs(["text-end",o.getDecoration("used")])},[Iu("span",null,As(t.$filters.bytes(o.used,2)),1)],2)]),Iu("tr",null,[e[3]||(e[3]=Iu("td",{scope:"row"},"free:",-1)),Iu("td",yg,[Iu("span",null,As(t.$filters.bytes(o.free,2)),1)])])])])])])}]]),wg={key:0,id:"network",class:"plugin"},_g={class:"table table-sm table-borderless margin-bottom"},kg={scope:"col",class:"text-end w-25"},Sg={scope:"col",class:"text-end w-25"},Ag={scope:"col",class:"text-end w-25"},Eg={scope:"col",class:"text-end w-25"},Cg={scope:"col",class:"text-end w-25"},Tg={scope:"col",class:"text-end w-25"},Og={scope:"col",class:"text-end w-25"},Dg={scope:"col",class:"text-end w-25"},Ig={scope:"row",class:"visible-lg-inline text-truncate"},Pg={class:"text-end"},jg={class:"text-end"};const Ng={props:{data:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.network},view(){return this.data.views.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,bytes_recv_rate_per_sec:t.bytes_recv_rate_per_sec,bytes_sent_rate_per_sec:t.bytes_sent_rate_per_sec,bytes_all_rate_per_sec:t.bytes_all_rate_per_sec,bytes_recv:t.bytes_recv,bytes_sent:t.bytes_sent,bytes_all:t.bytes_all}})).filter((t=>{const e=this.view[t.interfaceName].bytes_recv_rate_per_sec,r=this.view[t.interfaceName].bytes_sent_rate_per_sec;return!(e&&!1!==e.hidden||r&&!1!==r.hidden)}));return(0,am.orderBy)(t,["interfaceName"])},hasNetworks(){return this.networks.length>0}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},Lg=(0,Yd.A)(Ng,[["render",function(t,e,r,n,i,o){return o.hasNetworks?(xu(),Au("section",wg,[Iu("table",_g,[Iu("thead",null,[Iu("tr",null,[e[0]||(e[0]=Iu("th",{scope:"col"},"NETWORK",-1)),Al(Iu("th",kg,"Rxps",512),[[xp,!o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("th",Sg,"Txps",512),[[xp,!o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("th",Ag,null,512),[[xp,!o.args.network_cumul&&o.args.network_sum]]),Al(Iu("th",Eg,"Rx+Txps",512),[[xp,!o.args.network_cumul&&o.args.network_sum]]),Al(Iu("th",Cg,"Rx",512),[[xp,o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("th",Tg,"Tx",512),[[xp,o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("th",Og,null,512),[[xp,o.args.network_cumul&&o.args.network_sum]]),Al(Iu("th",Dg,"Rx+Tx",512),[[xp,o.args.network_cumul&&o.args.network_sum]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.networks,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",Ig,As(t.$filters.minSize(e.alias?e.alias:e.ifname,16)),1),Al(Iu("td",{class:xs(["text-end",o.getDecoration(e.interfaceName,"bytes_recv_rate_per_sec")])},As(o.args.byte?t.$filters.bytes(e.bytes_recv_rate_per_sec):t.$filters.bits(e.bytes_recv_rate_per_sec)),3),[[xp,!o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("td",{class:xs(["text-end",o.getDecoration(e.interfaceName,"bytes_sent_rate_per_sec")])},As(o.args.byte?t.$filters.bytes(e.bytes_sent_rate_per_sec):t.$filters.bits(e.bytes_sent_rate_per_sec)),3),[[xp,!o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("td",Pg,null,512),[[xp,!o.args.network_cumul&&o.args.network_sum]]),Al(Iu("td",{class:"text-end"},As(o.args.byte?t.$filters.bytes(e.bytes_all_rate_per_sec):t.$filters.bits(e.bytes_all_rate_per_sec)),513),[[xp,!o.args.network_cumul&&o.args.network_sum]]),Al(Iu("td",{class:"text-end"},As(o.args.byte?t.$filters.bytes(e.bytes_recv):t.$filters.bits(e.bytes_recv)),513),[[xp,o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("td",{class:"text-end"},As(o.args.byte?t.$filters.bytes(e.bytes_sent):t.$filters.bits(e.bytes_sent)),513),[[xp,o.args.network_cumul&&!o.args.network_sum]]),Al(Iu("td",jg,null,512),[[xp,o.args.network_cumul&&o.args.network_sum]]),Al(Iu("td",{class:"text-end"},As(o.args.byte?t.$filters.bytes(e.bytes_all):t.$filters.bits(e.bytes_all)),513),[[xp,o.args.network_cumul&&o.args.network_sum]])])))),128))])])])):Ru("v-if",!0)}]]),Mg={id:"now",class:"plugin"};const Rg={props:{data:{type:Object}},computed:{date_custom(){return this.data.stats.now.custom}}},qg=(0,Yd.A)(Rg,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Mg,[Iu("span",null,As(o.date_custom),1)])}]]),Bg={id:"percpu",class:"plugin"},$g={class:"table-responsive"},Ug={class:"table-sm table-borderless"},Fg={key:0,scope:"col"},zg={key:1,scope:"col"},Hg={key:0,scope:"col"},Vg={key:1,scope:"col"};const Gg={props:{data:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},percpuStats(){return this.data.stats.percpu}},methods:{getUserAlert:t=>Ud.getAlert("percpu","percpu_user_",t.user),getSystemAlert:t=>Ud.getAlert("percpu","percpu_system_",t.system),getIOWaitAlert:t=>Ud.getAlert("percpu","percpu_iowait_",t.system)}},Wg=(0,Yd.A)(Gg,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Bg,[Ru(" d-none d-xl-block d-xxl-block "),Iu("div",$g,[Iu("table",Ug,[Iu("thead",null,[Iu("tr",null,[o.args.disable_quicklook?(xu(),Au("th",Fg,"CPU")):Ru("v-if",!0),o.args.disable_quicklook?(xu(),Au("td",zg,"total")):Ru("v-if",!0),e[0]||(e[0]=Iu("td",{scope:"col"},"user",-1)),e[1]||(e[1]=Iu("td",{scope:"col"},"system",-1)),e[2]||(e[2]=Iu("td",{scope:"col"},"idle",-1)),e[3]||(e[3]=Iu("td",{scope:"col"},"iowait",-1)),e[4]||(e[4]=Iu("td",{scope:"col"},"steel",-1))])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.percpuStats,((t,e)=>(xu(),Au("tr",{key:e},[o.args.disable_quicklook?(xu(),Au("td",Hg,"CPU"+As(t.cpu_number),1)):Ru("v-if",!0),o.args.disable_quicklook?(xu(),Au("td",Vg,As(t.total)+"%",1)):Ru("v-if",!0),Iu("td",{scope:"col",class:xs(o.getUserAlert(t))},As(t.user)+"%",3),Iu("td",{scope:"col",class:xs(o.getSystemAlert(t))},As(t.system)+"%",3),Al(Iu("td",{scope:"col"},As(t.idle)+"%",513),[[xp,null!=t.idle]]),Al(Iu("td",{scope:"col",class:xs(o.getIOWaitAlert(t))},As(t.iowait)+"%",3),[[xp,null!=t.iowait]]),Al(Iu("td",{scope:"col"},As(t.steal)+"%",513),[[xp,null!=t.steal]])])))),128))])])])])}]]),Kg={key:0,id:"ports",class:"plugin"},Xg={class:"table table-sm table-borderless margin-bottom"},Qg={scope:"row"},Zg={key:0},Yg={key:1},Jg={key:2},tb={key:3},eb={key:0},rb={key:1},nb={key:2};const ib={props:{data:{type:Object}},computed:{stats(){return this.data.stats.ports},ports(){return this.stats},hasPorts(){return this.ports.length>0}},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"}},ob=(0,Yd.A)(ib,[["render",function(t,e,r,n,i,o){return o.hasPorts?(xu(),Au("section",Kg,[Iu("table",Xg,[Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.ports,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",Qg,[Ru(" prettier-ignore "),Lu(" "+As(t.$filters.minSize(e.description?e.description:e.host+" "+e.port,20)),1)]),e.host?(xu(),Au("td",{key:0,scope:"row",class:xs(["text-end",o.getPortDecoration(e)])},["null"==e.status?(xu(),Au("span",Zg,"Scanning")):"false"==e.status?(xu(),Au("span",Yg,"Timeout")):"true"==e.status?(xu(),Au("span",Jg,"Open")):(xu(),Au("span",tb,As(t.$filters.number(1e3*e.status,0))+"ms",1))],2)):Ru("v-if",!0),e.url?(xu(),Au("td",{key:1,scope:"row",class:xs(["text-end",o.getPortDecoration(e)])},["null"==e.status?(xu(),Au("span",eb,"Scanning")):"Error"==e.status?(xu(),Au("span",rb,"Error")):(xu(),Au("span",nb,"Code "+As(e.status),1))],2)):Ru("v-if",!0)])))),128))])])])):Ru("v-if",!0)}]]),sb={key:0},ab={key:1},lb={key:0,class:"row"},cb={class:"col-lg-18"};const ub={key:0,id:"amps",class:"plugin"},pb={class:"table table-sm table-borderless"},db={key:0},mb=["innerHTML"];const fb={props:{data:{type:Object}},computed:{stats(){return this.data.stats.amps},processes(){return this.stats.filter((t=>null!==t.result))},hasAmps(){return this.processes.length>0}},methods:{getNameDecoration(t){const e=t.count,r=t.countmin,n=t.countmax;let i="ok";return i=e>0?(null===r||e>=r)&&(null===n||e<=n)?"ok":"careful":null===r?"ok":"critical",i}}},hb=(0,Yd.A)(fb,[["render",function(t,e,r,n,i,o){return o.hasAmps?(xu(),Au("section",ub,[Iu("table",pb,[Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.processes,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",{class:xs(o.getNameDecoration(e))},As(e.name),3),e.regex?(xu(),Au("td",db,As(e.count),1)):Ru("v-if",!0),Iu("td",{class:"process-result",innerHTML:t.$filters.nl2br(e.result)},null,8,mb)])))),128))])]),Ru('
\n
\n
\n {{ process.name }}\n
\n
{{ process.count }}
\n
\n
\n ')])):Ru("v-if",!0)}]]),gb={id:"processcount",class:"plugin"},bb={class:"title"};const yb={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},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}}},vb=(0,Yd.A)(yb,[["render",function(t,e,r,n,i,o){return xu(),Au("section",gb,[e[0]||(e[0]=Iu("span",{class:"title"},"TASKS",-1)),Iu("span",null,As(o.total)+" ("+As(o.thread)+" thr),",1),Iu("span",null,As(o.running)+" run,",1),Iu("span",null,As(o.sleeping)+" slp,",1),Iu("span",null,As(o.stopped)+" oth",1),Iu("span",null,As(o.args.programs?"Programs":"Threads"),1),Iu("span",bb,As(r.sorter.auto?"sorted automatically":"sorted"),1),Iu("span",null,"by "+As(r.sorter.getColumnLabel(r.sorter.column)),1)])}]]),xb={key:0,id:"processlist",class:"plugin"},wb={key:0,class:"extendedstats"},_b={class:"careful"},kb={class:"careful"},Sb={class:"careful"},Ab={class:"careful"},Eb={class:"table-responsive d-lg-none"},Cb={class:"table table-sm table-borderless table-striped table-hover"},Tb={scope:"col"},Ob=["onClick"],Db={class:"table-responsive-md d-none d-lg-block"},Ib={class:"table table-sm table-borderless table-striped table-hover"},Pb={scope:"col"},jb={scope:"col"},Nb={scope:"col"},Lb={scope:"col"},Mb={scope:"col"},Rb=["onClick"],qb={key:0,scope:"row",class:""},Bb={key:1,id:"processlist",class:"plugin"},$b={class:"table-responsive d-lg-none"},Ub={class:"table table-sm table-borderless table-striped table-hover"},Fb={class:"table-responsive d-none d-lg-block"},zb={class:"table table-sm table-borderless table-striped table-hover"},Hb={class:""},Vb={class:""},Gb={scope:"row"},Wb={scope:"row",class:"table-cell widtd-60"};const Kb={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats_processlist(){return this.data.stats.processlist},stats_core(){return this.data.stats.core},cpucore(){return 0!==this.stats_core.log?this.stats_core.log:1},extended_stats(){return this.stats_processlist.find((t=>!0===t.extended_stats))||null},processes(){const{sorter:t}=this,e=(this.stats_processlist||[]).map((t=>this.updateProcess(t,this.data.stats.isWindows,this.args,this.cpucore)));return(0,am.orderBy)(e,[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)},ioReadWritePresentProcesses(){return(this.stats_processlist||[]).some((({io_counters:t})=>t))},stats_programlist(){return this.data.stats.programlist},programs(){const{sorter:t}=this,e=this.data.stats.isWindows,r=(this.stats_programlist||[]).map((t=>(t.memvirt="?",t.memres="?",t.memory_info&&(t.memvirt=t.memory_info.vms,t.memres=t.memory_info.rss),e&&null!==t.username&&(t.username=(0,am.last)(t.username.split("\\"))),t.timeforhuman="?",t.cpu_times&&(t.timeplus=bf([t.cpu_times.user,t.cpu_times.system]),t.timeforhuman=t.timeplus.hours.toString().padStart(2,"0")+":"+t.timeplus.minutes.toString().padStart(2,"0")+":"+t.timeplus.seconds.toString().padStart(2,"0")),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(" ").replace(/\n/g," ")),"string"==typeof t.cmdline&&0!==t.cmdline.length||(t.cmdline=t.name),t)));return(0,am.orderBy)(r,[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)},ioReadWritePresentPrograms(){return(this.stats_programlist||[]).some((({io_counters:t})=>t))},limit(){return void 0!==this.config.outputs?this.config.outputs.max_processes_display:void 0}},methods:{updateProcess:(t,e,r,n)=>(t.memvirt="?",t.memres="?",t.memory_info&&(t.memvirt=t.memory_info.vms,t.memres=t.memory_info.rss),e&&null!==t.username&&(t.username=(0,am.last)(t.username.split("\\"))),t.timeforhuman="?",t.cpu_times&&(t.timeplus=bf([t.cpu_times.user,t.cpu_times.system]),t.timeforhuman=t.timeplus.hours.toString().padStart(2,"0")+":"+t.timeplus.minutes.toString().padStart(2,"0")+":"+t.timeplus.seconds.toString().padStart(2,"0")),null===t.num_threads&&(t.num_threads=-1),t.irix=1,null===t.cpu_percent?t.cpu_percent=-1:r.disable_irix&&(t.irix=n),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.name=t.name+" "+t.cmdline.slice(1).join(" ").replace(/\n/g," "),t.cmdline=t.cmdline.join(" ").replace(/\n/g," ")),"string"==typeof t.cmdline&&0!==t.cmdline.length||(t.cmdline=t.name),t),getCpuPercentAlert:t=>Ud.getAlert("processlist","processlist_cpu_",t.cpu_percent),getMemoryPercentAlert:t=>Ud.getAlert("processlist","processlist_mem_",t.cpu_percent),getDisableStats:()=>Ud.getLimit("processlist","processlist_disable_stats")||[],getDisableVms:()=>"true"===(Ud.getLimit("processlist","processlist_disable_virtual_memory")||["False"])[0].toLowerCase(),setExtendedStats(t){fetch("api/4/processes/extended/"+t.toString(),{method:"POST"}).then((t=>t.json())),this.$forceUpdate()},disableExtendedStats(){fetch("api/4/processes/extended/disable",{method:"POST"}).then((t=>t.json())),this.$forceUpdate()}}},Xb={components:{GlancesPluginAmps:hb,GlancesPluginProcesscount:vb,GlancesPluginProcesslist:(0,Yd.A)(Kb,[["render",function(t,e,r,n,i,o){return xu(),Au(fu,null,[Ru(" Display processes "),o.args.programs?Ru("v-if",!0):(xu(),Au("section",xb,[null!==o.extended_stats?(xu(),Au("div",wb,[Iu("div",null,[e[24]||(e[24]=Iu("span",{class:"title"},"Pinned task: ",-1)),Iu("span",null,As(t.$filters.limitTo(o.extended_stats.cmdline,80)),1),Iu("span",null,[Iu("button",{class:"button",onClick:e[0]||(e[0]=t=>o.disableExtendedStats())},"Unpin")])]),Iu("div",null,[e[25]||(e[25]=Iu("span",null,"CPU Min/Max/Mean: ",-1)),Iu("span",_b,As(t.$filters.number(o.extended_stats.cpu_min,1))+"% / "+As(t.$filters.number(o.extended_stats.cpu_max,1))+"% / "+As(t.$filters.number(o.extended_stats.cpu_mean,1))+"%",1),e[26]||(e[26]=Iu("span",null,"Affinity: ",-1)),Iu("span",kb,As(o.extended_stats.cpu_affinity|t.length),1)]),Iu("div",null,[e[27]||(e[27]=Iu("span",null,"MEM Min/Max/Mean: ",-1)),Iu("span",Sb,As(t.$filters.number(o.extended_stats.memory_min,1))+"% / "+As(t.$filters.number(o.extended_stats.memory_max,1))+"% / "+As(t.$filters.number(o.extended_stats.memory_mean,1))+"%",1),e[28]||(e[28]=Iu("span",null,"Memory info: ",-1)),Iu("span",Ab,As(t.$filters.dictToString(o.extended_stats.memory_info)),1)])])):Ru("v-if",!0),Iu("div",Eb,[Iu("table",Cb,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",{scope:"col",class:xs(["sortable","cpu_percent"===r.sorter.column&&"sort"]),onClick:e[1]||(e[1]=e=>t.$emit("update:sorter","cpu_percent"))},[Al(Iu("span",null,"CPU%",512),[[xp,!o.args.disable_irix]]),Al(Iu("span",null,"CPUi",512),[[xp,o.args.disable_irix]])],2),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","memory_percent"===r.sorter.column&&"sort"]),onClick:e[2]||(e[2]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",Tb," PID ",512),[[xp,!o.getDisableStats().includes("pid")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","username"===r.sorter.column&&"sort"]),onClick:e[3]||(e[3]=e=>t.$emit("update:sorter","username"))}," USER ",2),[[xp,!o.getDisableStats().includes("username")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","name"===r.sorter.column&&"sort"]),onClick:e[4]||(e[4]=e=>t.$emit("update:sorter","name"))}," Command (click to pin) ",2),[[xp,!o.getDisableStats().includes("cmdline")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.processes,((e,r)=>(xu(),Au("tr",{key:r,style:{cursor:"pointer"},onClick:t=>o.setExtendedStats(e)},[Al(Iu("td",{scope:"row",class:xs(o.getCpuPercentAlert(e))},As(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent/e.irix,1)),3),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"row",class:xs(o.getMemoryPercentAlert(e))},As(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",{scope:"row"},As(e.pid),513),[[xp,!o.getDisableStats().includes("pid")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.name),513),[[xp,o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.cmdline),513),[[xp,!o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]])],8,Ob)))),128))])])]),Iu("div",Db,[Iu("table",Ib,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",{scope:"col",class:xs(["sortable","cpu_percent"===r.sorter.column&&"sort"]),onClick:e[5]||(e[5]=e=>t.$emit("update:sorter","cpu_percent"))},[Al(Iu("span",null,"CPU%",512),[[xp,!o.args.disable_irix]]),Al(Iu("span",null,"CPUi",512),[[xp,o.args.disable_irix]])],2),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","memory_percent"===r.sorter.column&&"sort"]),onClick:e[6]||(e[6]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",Pb," VIRT ",512),[[xp,!o.getDisableStats().includes("memory_info")&&!o.getDisableVms()]]),Al(Iu("td",jb," RES ",512),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",Nb," PID ",512),[[xp,!o.getDisableStats().includes("pid")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","username"===r.sorter.column&&"sort"]),onClick:e[7]||(e[7]=e=>t.$emit("update:sorter","username"))}," USER ",2),[[xp,!o.getDisableStats().includes("username")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","timemillis"===r.sorter.column&&"sort"]),onClick:e[8]||(e[8]=e=>t.$emit("update:sorter","timemillis"))}," TIME+ ",2),[[xp,!o.getDisableStats().includes("cpu_times")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","num_threads"===r.sorter.column&&"sort"]),onClick:e[9]||(e[9]=e=>t.$emit("update:sorter","num_threads"))}," THR ",2),[[xp,!o.getDisableStats().includes("num_threads")]]),Al(Iu("td",Lb,"NI",512),[[xp,!o.getDisableStats().includes("nice")]]),Al(Iu("td",Mb,"S ",512),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"col",class:xs(["",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[10]||(e[10]=e=>t.$emit("update:sorter","io_counters"))}," IORps ",2),[[xp,o.ioReadWritePresentProcesses&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"col",class:xs(["text-start",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[11]||(e[11]=e=>t.$emit("update:sorter","io_counters"))}," IOWps ",2),[[xp,o.ioReadWritePresentProcesses&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"col",class:xs(["sortable","name"===r.sorter.column&&"sort"]),onClick:e[12]||(e[12]=e=>t.$emit("update:sorter","name"))}," Command (click to pin) ",2),[[xp,!o.getDisableStats().includes("cmdline")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.processes,((e,r)=>(xu(),Au("tr",{key:r,style:{cursor:"pointer"},onClick:t=>o.setExtendedStats(e.pid)},[Al(Iu("td",{scope:"row",class:xs(o.getCpuPercentAlert(e))},As(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent/e.irix,1)),3),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"row",class:xs(o.getMemoryPercentAlert(e))},As(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",{scope:"row"},As(t.$filters.bytes(e.memvirt)),513),[[xp,!o.getDisableStats().includes("memory_info")&&!o.getDisableVms()]]),Al(Iu("td",{scope:"row"},As(t.$filters.bytes(e.memres)),513),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",{scope:"row"},As(e.pid),513),[[xp,!o.getDisableStats().includes("pid")]]),Al(Iu("td",{scope:"row"},As(e.username),513),[[xp,!o.getDisableStats().includes("username")]]),Al(Iu("td",{scope:"row",class:""},As(e.timeforhuman),513),[[xp,!o.getDisableStats().includes("cpu_times")]]),"?"==e.timeplus?Al((xu(),Au("td",qb,"?",512)),[[xp,!o.getDisableStats().includes("cpu_times")]]):Ru("v-if",!0),Al(Iu("td",{scope:"row",class:""},As(-1==e.num_threads?"?":e.num_threads),513),[[xp,!o.getDisableStats().includes("num_threads")]]),Al(Iu("td",{scope:"row",class:xs({nice:e.isNice})},As(t.$filters.exclamation(e.nice)),3),[[xp,!o.getDisableStats().includes("nice")]]),Al(Iu("td",{scope:"row",class:xs({status:"R"==e.status})},As(e.status),3),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"row",class:""},As(t.$filters.bytes(e.io_read)),513),[[xp,o.ioReadWritePresentProcesses&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:"text-start"},As(t.$filters.bytes(e.io_write)),513),[[xp,o.ioReadWritePresentProcesses&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.name),513),[[xp,o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.cmdline),513),[[xp,!o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]])],8,Rb)))),128))])])])])),Ru(" Display programs "),o.args.programs?(xu(),Au("section",Bb,[Iu("div",$b,[Iu("table",Ub,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",{class:xs(["sortable","cpu_percent"===r.sorter.column&&"sort"]),onClick:e[13]||(e[13]=e=>t.$emit("update:sorter","cpu_percent"))},[Al(Iu("span",null,"CPU%",512),[[xp,!o.args.disable_irix]]),Al(Iu("span",null,"CPUi",512),[[xp,o.args.disable_irix]])],2),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{class:xs(["sortable","memory_percent"===r.sorter.column&&"sort"]),onClick:e[14]||(e[14]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",null," NPROCS ",512),[[xp,!o.getDisableStats().includes("nprocs")]]),Al(Iu("td",{scope:"row",class:xs(["sortable","name"===r.sorter.column&&"sort"]),onClick:e[15]||(e[15]=e=>t.$emit("update:sorter","name"))}," Command (click to pin) ",2),[[xp,!o.getDisableStats().includes("cmdline")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.programs,((e,r)=>(xu(),Au("tr",{key:r},[Al(Iu("td",{scope:"row",class:xs(o.getCpuPercentAlert(e))},As(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent/e.irix,1)),3),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"row",class:xs(o.getMemoryPercentAlert(e))},As(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",{scope:"row"},As(e.nprocs),513),[[xp,!o.getDisableStats().includes("nprocs")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.name),513),[[xp,o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]]),Al(Iu("td",{scope:"row"},As(e.cmdline),513),[[xp,!o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]])])))),128))])])]),Iu("div",Fb,[Iu("table",zb,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",{class:xs(["sortable","cpu_percent"===r.sorter.column&&"sort"]),onClick:e[16]||(e[16]=e=>t.$emit("update:sorter","cpu_percent"))},[Al(Iu("span",null,"CPU%",512),[[xp,!o.args.disable_irix]]),Al(Iu("span",null,"CPUi",512),[[xp,o.args.disable_irix]])],2),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{class:xs(["sortable","memory_percent"===r.sorter.column&&"sort"]),onClick:e[17]||(e[17]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",Hb," VIRT ",512),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",Vb," RES ",512),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",null," NPROCS ",512),[[xp,!o.getDisableStats().includes("nprocs")]]),Al(Iu("td",{scope:"row",class:xs(["sortable","username"===r.sorter.column&&"sort"]),onClick:e[18]||(e[18]=e=>t.$emit("update:sorter","username"))}," USER ",2),[[xp,!o.getDisableStats().includes("username")]]),Al(Iu("td",{scope:"row",class:xs(["",["sortable","timemillis"===r.sorter.column&&"sort"]]),onClick:e[19]||(e[19]=e=>t.$emit("update:sorter","timemillis"))}," TIME+ ",2),[[xp,!o.getDisableStats().includes("cpu_times")]]),Al(Iu("td",{scope:"row",class:xs(["",["sortable","num_threads"===r.sorter.column&&"sort"]]),onClick:e[20]||(e[20]=e=>t.$emit("update:sorter","num_threads"))}," THR ",2),[[xp,!o.getDisableStats().includes("num_threads")]]),Al(Iu("td",Gb,"NI",512),[[xp,!o.getDisableStats().includes("nice")]]),Al(Iu("td",Wb,"S ",512),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"row",class:xs(["",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[21]||(e[21]=e=>t.$emit("update:sorter","io_counters"))}," IORps ",2),[[xp,o.ioReadWritePresentPrograms&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:xs(["text-start",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[22]||(e[22]=e=>t.$emit("update:sorter","io_counters"))}," IOWps ",2),[[xp,o.ioReadWritePresentPrograms&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:xs(["sortable","name"===r.sorter.column&&"sort"]),onClick:e[23]||(e[23]=e=>t.$emit("update:sorter","name"))}," Command (click to pin) ",2),[[xp,!o.getDisableStats().includes("cmdline")]])])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.programs,((e,r)=>(xu(),Au("tr",{key:r},[Al(Iu("td",{scope:"row",class:xs(o.getCpuPercentAlert(e))},As(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent/e.irix,1)),3),[[xp,!o.getDisableStats().includes("cpu_percent")]]),Al(Iu("td",{scope:"row",class:xs(o.getMemoryPercentAlert(e))},As(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),[[xp,!o.getDisableStats().includes("memory_percent")]]),Al(Iu("td",{scope:"row"},As(t.$filters.bytes(e.memvirt)),513),[[xp,!o.getDisableStats().includes("memory_info")&&!o.getDisableVms()]]),Al(Iu("td",{scope:"row"},As(t.$filters.bytes(e.memres)),513),[[xp,!o.getDisableStats().includes("memory_info")]]),Al(Iu("td",{scope:"row"},As(e.nprocs),513),[[xp,!o.getDisableStats().includes("nprocs")]]),Al(Iu("td",{scope:"row"},As(e.username),513),[[xp,!o.getDisableStats().includes("username")]]),Al(Iu("td",{scope:"row",class:""},As(e.timeforhuman),513),[[xp,!o.getDisableStats().includes("cpu_times")]]),Al(Iu("td",{scope:"row",class:""},As(-1==e.num_threads?"?":e.num_threads),513),[[xp,!o.getDisableStats().includes("num_threads")]]),Al(Iu("td",{scope:"row",class:xs({nice:e.isNice})},As(t.$filters.exclamation(e.nice)),3),[[xp,!o.getDisableStats().includes("nice")]]),Al(Iu("td",{scope:"row",class:xs({status:"R"==e.status})},As(e.status),3),[[xp,!o.getDisableStats().includes("status")]]),Al(Iu("td",{scope:"row",class:""},As(t.$filters.bytes(e.io_read)),513),[[xp,o.ioReadWritePresentPrograms&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:"text-start"},As(t.$filters.bytes(e.io_write)),513),[[xp,o.ioReadWritePresentPrograms&&!o.getDisableStats().includes("io_counters")]]),Al(Iu("td",{scope:"row",class:"text-truncate"},As(e.name),513),[[xp,o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]]),Al(Iu("td",{scope:"row"},As(e.cmdline),513),[[xp,!o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]])])))),128))])])])])):Ru("v-if",!0)],64)}]])},props:{data:{type:Object}},data:()=>({store:qd,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{cpu_percent:"CPU consumption",memory_percent:"memory consumption",username:"user name",timemillis:"process time",cpu_times:"process time",io_counters:"disk IO",name:"process name",None:"None"}[t]||t}})}}}},Qb=(0,Yd.A)(Xb,[["render",function(t,e,r,n,i,o){const s=ec("glances-plugin-processcount"),a=ec("glances-plugin-amps"),l=ec("glances-plugin-processlist");return o.args.disable_process?(xu(),Au("div",sb,"PROCESSES DISABLED (press 'z' to display)")):(xu(),Au("div",ab,[Pu(s,{sorter:i.sorter,data:r.data},null,8,["sorter","data"]),o.args.disable_amps?Ru("v-if",!0):(xu(),Au("div",lb,[Iu("div",cb,[Pu(a,{data:r.data},null,8,["data"])])])),Pu(l,{sorter:i.sorter,data:r.data,"onUpdate:sorter":e[0]||(e[0]=t=>o.args.sort_processes_key=t)},null,8,["sorter","data"])]))}]]),Zb={id:"quicklook",class:"plugin"},Yb={class:"d-flex justify-content-between"},Jb={class:"text-start text-truncate"},ty={key:0,class:"text-end d-none d-xxl-block frequency"},ey={class:"table-responsive"},ry={class:"table table-sm table-borderless"},ny={key:0},iy={scope:"col",class:"progress"},oy=["aria-valuenow"],sy={scope:"col",class:"text-end"},ay={scope:"col"},ly={scope:"col",class:"progress"},cy=["aria-valuenow"],uy={scope:"col",class:"text-end"},py={scope:"col"},dy={scope:"col",class:"progress"},my=["aria-valuenow"],fy={scope:"col",class:"text-end"};const hy={props:{data:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats(){return this.data.stats.quicklook},view(){return this.data.views.quicklook},cpu(){return this.stats.cpu},cpu_name(){return this.stats.cpu_name},cpu_hz_current(){return(this.stats.cpu_hz_current/1e6).toFixed(0)},cpu_hz(){return(this.stats.cpu_hz/1e6).toFixed(0)},percpus(){const t=this.stats.percpu.map((({cpu_number:t,total:e})=>({number:t,total:e}))),e=parseInt(this.config.percpu.max_cpu_display);if(this.stats.percpu.length>e){var r=t.sort((function(t,e){return e.total-t.total}));const n={number:"x",total:Number((r.slice(e).reduce(((t,{total:e})=>t+e),0)/(this.stats.percpu.length-e)).toFixed(1))};(r=r.slice(0,e)).push(n)}return this.stats.percpu.length<=e?t:r},stats_list_after_cpu(){return this.view.list.filter((t=>!t.includes("cpu")))}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},gy=(0,Yd.A)(hy,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Zb,[Iu("div",Yb,[Iu("span",Jb,As(o.cpu_name),1),o.cpu_hz_current?(xu(),Au("span",ty,As(o.cpu_hz_current)+"/"+As(o.cpu_hz)+"Ghz ",1)):Ru("v-if",!0)]),Iu("div",ey,[Iu("table",ry,[o.args.percpu?Ru("v-if",!0):(xu(),Au("tr",ny,[e[0]||(e[0]=Iu("td",{scope:"col"},"CPU",-1)),Iu("td",iy,[Iu("div",{class:xs(`progress-bar progress-bar-${o.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":o.cpu,"aria-valuemin":"0","aria-valuemax":"100",style:hs(`width: ${o.cpu}%;`)},"   ",14,oy)]),Iu("td",sy,[Iu("span",null,As(o.cpu)+"%",1)])])),o.args.percpu?(xu(!0),Au(fu,{key:1},oc(o.percpus,((t,e)=>(xu(),Au("tr",{key:e},[Iu("td",ay,"CPU"+As(t.number),1),Iu("td",ly,[Iu("div",{class:xs(`progress-bar progress-bar-${o.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":t.total,"aria-valuemin":"0","aria-valuemax":"100",style:hs(`width: ${t.total}%;`)},"   ",14,cy)]),Iu("td",uy,[Iu("span",null,As(t.total)+"%",1)])])))),128)):Ru("v-if",!0),(xu(!0),Au(fu,null,oc(o.stats_list_after_cpu,(t=>(xu(),Au("tr",null,[Iu("td",py,As(t.toUpperCase()),1),Iu("td",dy,[Iu("div",{class:xs(`progress-bar progress-bar-${o.getDecoration(t)}`),role:"progressbar","aria-valuenow":o.stats[t],"aria-valuemin":"0","aria-valuemax":"100",style:hs(`width: ${o.stats[t]}%;`)},"   ",14,my)]),Iu("td",fy,[Iu("span",null,As(o.stats[t])+"%",1)])])))),256))])])])}]]),by={key:0,id:"raid",class:"plugin"},yy={class:"table table-sm table-borderless margin-bottom"},vy={scope:"col"},xy={scope:"row"},wy={class:"warning"};const _y={props:{data:{type:Object}},computed:{stats(){return this.data.stats.raid},disks(){const t=Object.entries(this.stats).map((([t,e])=>{const r=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"}},ky=(0,Yd.A)(_y,[["render",function(t,e,r,n,i,o){return o.hasDisks?(xu(),Au("section",by,[Iu("table",yy,[Iu("thead",null,[Iu("tr",null,[Iu("th",vy,"RAID disks "+As(o.disks.length),1),e[0]||(e[0]=Iu("th",{scope:"col",class:"text-end"},"Used",-1)),e[1]||(e[1]=Iu("th",{scope:"col",class:"text-end"},"Total",-1))])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.disks,((t,e)=>(xu(),Au("tr",{key:e},[Iu("td",xy,[Lu(As(t.type.toUpperCase())+" "+As(t.name)+" ",1),Al(Iu("div",wy,"└─ Degraded mode",512),[[xp,t.degraded]]),Al(Iu("div",null,"   └─ "+As(t.config),513),[[xp,t.degraded]]),Al(Iu("div",{class:"critical"},"└─ Status "+As(t.status),513),[[xp,t.inactive]]),t.inactive?(xu(!0),Au(fu,{key:0},oc(t.components,((e,r)=>(xu(),Au("div",{key:r},"    "+As(r===t.components.length-1?"└─":"├─")+" disk "+As(e.number)+": "+As(e.name),1)))),128)):Ru("v-if",!0)]),Al(Iu("td",{scope:"row",class:xs(["text-end",o.getAlert(t)])},As(t.used),3),[[xp,"active"==t.status]]),Al(Iu("td",{scope:"row",class:xs(["text-end",o.getAlert(t)])},As(t.available),3),[[xp,"active"==t.status]])])))),128))])])])):Ru("v-if",!0)}]]),Sy={key:0,id:"smart",class:"plugin"},Ay={class:"table table-sm table-borderless margin-bottom"},Ey={scope:"row"},Cy={scope:"row"},Ty={scope:"row",class:"text-end text-truncate"};const Oy={props:{data:{type:Object}},computed:{stats(){return this.data.stats.smart},drives(){return(Array.isArray(this.stats)?this.stats:[]).map((t=>({name:t.DeviceName,details:Object.entries(t).filter((([t])=>"DeviceName"!==t)).sort((([,t],[,e])=>t.namee.name?1:0)).map((([t,e])=>e))})))},hasDrives(){return this.drives.length>0}}},Dy=(0,Yd.A)(Oy,[["render",function(t,e,r,n,i,o){return o.hasDrives?(xu(),Au("section",Sy,[Iu("table",Ay,[e[1]||(e[1]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"SMART DISKS"),Iu("th",{scope:"col",class:"text-end"})])],-1)),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.drives,((t,r)=>(xu(),Au(fu,{key:r},[Iu("tr",null,[Iu("td",Ey,As(t.name),1),e[0]||(e[0]=Iu("td",{scope:"col",class:"text-end"},null,-1))]),(xu(!0),Au(fu,null,oc(t.details,((t,e)=>(xu(),Au("tr",{key:e},[Iu("td",Cy,As(t.name),1),Iu("td",Ty,As(t.raw),1)])))),128))],64)))),128))])])])):Ru("v-if",!0)}]]),Iy={key:0,id:"sensors",class:"plugin"},Py={class:"table table-sm table-borderless"},jy={scope:"row"};const Ny={props:{data:{type:Object}},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.sensors},view(){return this.data.views.sensors},sensors(){return this.stats.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)))},hasSensors(){return this.sensors.length>0}},methods:{getDecoration(t){if(void 0!==this.view[t].value.decoration)return this.view[t].value.decoration.toLowerCase()}}},Ly=(0,Yd.A)(Ny,[["render",function(t,e,r,n,i,o){return o.hasSensors?(xu(),Au("section",Iy,[Iu("table",Py,[e[0]||(e[0]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"SENSORS"),Iu("th",{scope:"col",class:"text-end"})])],-1)),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.sensors,((t,e)=>(xu(),Au("tr",{key:e},[Iu("td",jy,As(t.label),1),Iu("td",{class:xs(["text-end",o.getDecoration(t.label)])},As(t.value)+As(t.unit),3)])))),128))])])])):Ru("v-if",!0)}]]),My={id:"system",class:"plugin"},Ry={key:0,class:"critical"},qy={class:"title"},By={key:1,class:"text-truncate"};const $y={props:{data:{type:Object}},data:()=>({store:qd}),computed:{stats(){return this.data.stats.system},hostname(){return this.stats.hostname},humanReadableName(){return this.stats.hr_name},isDisconnected(){return"FAILURE"===this.store.status}}},Uy=(0,Yd.A)($y,[["render",function(t,e,r,n,i,o){return xu(),Au("section",My,[o.isDisconnected?(xu(),Au("span",Ry,"Disconnected from")):Ru("v-if",!0),Iu("span",qy,As(o.hostname),1),o.isDisconnected?Ru("v-if",!0):(xu(),Au("span",By,As(o.humanReadableName),1))])}]]),Fy={id:"uptime",class:"plugin"};const zy={props:{data:{type:Object}},computed:{value(){return this.data.stats.uptime}}},Hy=(0,Yd.A)(zy,[["render",function(t,e,r,n,i,o){return xu(),Au("section",Fy,[Iu("span",null,"Uptime: "+As(o.value),1)])}]]),Vy={key:0,id:"vms",class:"plugin"},Gy={class:"table table-sm table-borderless table-striped table-hover"};const Wy={props:{data:{type:Object}},data:()=>({store:qd,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.vms},views(){return this.data.views.vms},vms(){const{sorter:t}=this,e=(this.stats||[]).map((t=>({id:t.id,name:t.name,status:null!=t.status?t.status:"-",cpu_count:null!=t.cpu_count?t.cpu_count:"-",cpu_time:null!=t.cpu_time?t.cpu_time:"-",cpu_time_rate_per_sec:null!=t.cpu_time_rate_per_sec?t.cpu_time_rate_per_sec:"?",memory_usage:null!=t.memory_usage?t.memory_usage:"-",memory_total:null!=t.memory_total?t.memory_total:"-",load_1min:null!=t.load_1min?t.load_1min:"-",load_5min:null!=t.load_5min?t.load_5min:"-",load_15min:null!=t.load_15min?t.load_15min:"-",release:t.release,image:t.image,engine:t.engine,engine_version:t.engine_version})));return(0,am.orderBy)(e,[t.column].reduce(((t,e)=>("memory_usage"===e&&(e=["memory_usage"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"])},showEngine(){return this.views.show_engine_name}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["load_1min","cpu_time","memory_usage","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"cpu_time",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["name"].includes(t)},getColumnLabel:function(t){return{load_1min:"load",cpu_time:"CPU time",memory_usage:"memory consumption",name:"VM name",None:"None"}[t]||t}})}}}},Ky=(0,Yd.A)(Wy,[["render",function(t,e,r,n,i,o){return o.vms.length?(xu(),Au("section",Vy,[e[8]||(e[8]=Iu("span",{class:"title"},"VMs",-1)),Al(Iu("span",null,As(o.vms.length)+" sorted by "+As(i.sorter.getColumnLabel(i.sorter.column)),513),[[xp,o.vms.length>1]]),Iu("table",Gy,[Iu("thead",null,[Iu("tr",null,[Al(Iu("td",null,"Engine",512),[[xp,o.showEngine]]),Iu("td",{class:xs(["sortable","name"===i.sorter.column&&"sort"]),onClick:e[0]||(e[0]=t=>o.args.sort_processes_key="name")}," Name ",2),e[4]||(e[4]=Iu("td",null,"Status",-1)),e[5]||(e[5]=Iu("td",null,"Core",-1)),Iu("td",{class:xs(["sortable","cpu_time"===i.sorter.column&&"sort"]),onClick:e[1]||(e[1]=t=>o.args.sort_processes_key="cpu_time")}," CPU% ",2),Iu("td",{class:xs(["sortable","memory_usage"===i.sorter.column&&"sort"]),onClick:e[2]||(e[2]=t=>o.args.sort_processes_key="memory_usage")}," MEM ",2),e[6]||(e[6]=Iu("td",null,"/ MAX",-1)),Iu("td",{class:xs(["sortable","load_1min"===i.sorter.column&&"sort"]),onClick:e[3]||(e[3]=t=>o.args.sort_processes_key="load_1min")}," LOAD 1/5/15min ",2),e[7]||(e[7]=Iu("td",null,"Release",-1))])]),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.vms,((e,r)=>(xu(),Au("tr",{key:r},[Al(Iu("td",null,As(e.engine),513),[[xp,o.showEngine]]),Iu("td",null,As(e.name),1),Iu("td",{class:xs("stopped"==e.status?"careful":"ok")},As(e.status),3),Iu("td",null,As(t.$filters.number(e.cpu_count,1)),1),Iu("td",null,As(t.$filters.number(e.cpu_time,1)),1),Iu("td",null,As(t.$filters.bytes(e.memory_usage)),1),Iu("td",null," / "+As(t.$filters.bytes(e.memory_total)),1),Iu("td",null,As(t.$filters.number(e.load_1min))+"/"+As(t.$filters.number(e.load_5min))+"/"+As(t.$filters.number(e.load_15min)),1),Iu("td",null,As(e.release),1)])))),128))])])])):Ru("v-if",!0)}]]),Xy={key:0,id:"wifi",class:"plugin"},Qy={class:"table table-sm table-borderless margin-bottom"},Zy={scope:"row"};const Yy={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,quality_level:t.quality_level}})).filter(Boolean);return(0,am.orderBy)(t,["ssid"])},hasHotpots(){return this.hotspots.length>0}},methods:{getDecoration(t,e){if(void 0!==this.view[t.ssid][e])return this.view[t.ssid][e].decoration.toLowerCase()}}},Jy=(0,Yd.A)(Yy,[["render",function(t,e,r,n,i,o){return o.hasHotpots?(xu(),Au("section",Xy,[Iu("table",Qy,[e[0]||(e[0]=Iu("thead",null,[Iu("tr",null,[Iu("th",{scope:"col"},"WIFI"),Iu("th",{scope:"col",class:"text-end"},"dBm")])],-1)),Iu("tbody",null,[(xu(!0),Au(fu,null,oc(o.hotspots,((e,r)=>(xu(),Au("tr",{key:r},[Iu("td",Zy,As(t.$filters.limitTo(e.ssid,20)),1),Iu("td",{scope:"row",class:xs(["text-end",o.getDecoration(e,"quality_level")])},As(e.quality_level),3)])))),128))])])])):Ru("v-if",!0)}]]),tv=JSON.parse('{"r":["quicklook","cpu","percpu","gpu","mem","memswap","load"],"H":["network","ports","wifi","connections","diskio","fs","irq","folders","raid","smart","sensors"]}'),ev={components:{GlancesHelp:Jd,GlancesPluginAlert:cm,GlancesPluginCloud:mm,GlancesPluginConnections:wm,GlancesPluginCpu:Xm,GlancesPluginDiskio:xf,GlancesPluginContainers:Uf,GlancesPluginFolders:Wf,GlancesPluginFs:rh,GlancesPluginGpu:xh,GlancesPluginHostname:Ah,GlancesPluginIp:jh,GlancesPluginIrq:Bh,GlancesPluginLoad:Gh,GlancesPluginMem:mg,GlancesPluginMemswap:xg,GlancesPluginNetwork:Lg,GlancesPluginNow:qg,GlancesPluginPercpu:Wg,GlancesPluginPorts:ob,GlancesPluginProcess:Qb,GlancesPluginQuicklook:gy,GlancesPluginRaid:ky,GlancesPluginSensors:Ly,GlancesPluginSmart:Dy,GlancesPluginSystem:Uy,GlancesPluginUptime:Hy,GlancesPluginVms:Ky,GlancesPluginWifi:Jy},data:()=>({store:qd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},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"},topMenu(){return void 0!==this.config.outputs&&void 0!==this.config.outputs.top_menu?this.config.outputs.top_menu.split(","):tv.r},leftMenu(){return void 0!==this.config.outputs&&void 0!==this.config.outputs.left_menu?this.config.outputs.left_menu.split(","):tv.H}},watch:{title(){document&&(document.title=this.title)}},mounted(){const t=window.__GLANCES__||{},e=isFinite(t["refresh-time"])?parseInt(t["refresh-time"],10):void 0;Fd.init(e),this.setupHotKeys()},beforeUnmount(){Ld.unbind()},methods:{setupHotKeys(){Ld("a",(()=>{this.store.args.sort_processes_key=null})),Ld("c",(()=>{this.store.args.sort_processes_key="cpu_percent"})),Ld("m",(()=>{this.store.args.sort_processes_key="memory_percent"})),Ld("u",(()=>{this.store.args.sort_processes_key="username"})),Ld("p",(()=>{this.store.args.sort_processes_key="name"})),Ld("i",(()=>{this.store.args.sort_processes_key="io_counters"})),Ld("t",(()=>{this.store.args.sort_processes_key="timemillis"})),Ld("shift+A",(()=>{this.store.args.disable_amps=!this.store.args.disable_amps})),Ld("d",(()=>{this.store.args.disable_diskio=!this.store.args.disable_diskio})),Ld("shift+Q",(()=>{this.store.args.enable_irq=!this.store.args.enable_irq})),Ld("f",(()=>{this.store.args.disable_fs=!this.store.args.disable_fs})),Ld("j",(()=>{this.store.args.programs=!this.store.args.programs})),Ld("k",(()=>{this.store.args.disable_connections=!this.store.args.disable_connections})),Ld("n",(()=>{this.store.args.disable_network=!this.store.args.disable_network})),Ld("s",(()=>{this.store.args.disable_sensors=!this.store.args.disable_sensors})),Ld("2",(()=>{this.store.args.disable_left_sidebar=!this.store.args.disable_left_sidebar})),Ld("z",(()=>{this.store.args.disable_process=!this.store.args.disable_process})),Ld("shift+S",(()=>{this.store.args.process_short_name=!this.store.args.process_short_name})),Ld("shift+D",(()=>{this.store.args.disable_containers=!this.store.args.disable_containers})),Ld("b",(()=>{this.store.args.byte=!this.store.args.byte})),Ld("shift+B",(()=>{this.store.args.diskio_iops=!this.store.args.diskio_iops,this.store.args.diskio_iops&&(this.store.args.diskio_latency=!1)})),Ld("shift+L",(()=>{this.store.args.diskio_latency=!this.store.args.diskio_latency,this.store.args.diskio_latency&&(this.store.args.diskio_iops=!1)})),Ld("l",(()=>{this.store.args.disable_alert=!this.store.args.disable_alert})),Ld("1",(()=>{this.store.args.percpu=!this.store.args.percpu})),Ld("h",(()=>{this.store.args.help_tag=!this.store.args.help_tag})),Ld("shift+T",(()=>{this.store.args.network_sum=!this.store.args.network_sum})),Ld("shift+U",(()=>{this.store.args.network_cumul=!this.store.args.network_cumul})),Ld("shift+F",(()=>{this.store.args.fs_free_space=!this.store.args.fs_free_space})),Ld("3",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook})),Ld("6",(()=>{this.store.args.meangpu=!this.store.args.meangpu})),Ld("shift+G",(()=>{this.store.args.disable_gpu=!this.store.args.disable_gpu})),Ld("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})),Ld("shift+I",(()=>{this.store.args.disable_ip=!this.store.args.disable_ip})),Ld("shift+P",(()=>{this.store.args.disable_ports=!this.store.args.disable_ports})),Ld("shift+V",(()=>{this.store.args.disable_vms=!this.store.args.disable_vms})),Ld("shift+W",(()=>{this.store.args.disable_wifi=!this.store.args.disable_wifi})),Ld("0",(()=>{this.store.args.disable_irix=!this.store.args.disable_irix}))}}};const rv=Fp((0,Yd.A)(ev,[["render",function(t,e,r,n,i,o){const s=ec("glances-help"),a=ec("glances-plugin-hostname"),l=ec("glances-plugin-uptime"),c=ec("glances-plugin-system"),u=ec("glances-plugin-ip"),p=ec("glances-plugin-now"),d=ec("glances-plugin-cloud"),m=ec("glances-plugin-quicklook"),f=ec("glances-plugin-cpu"),h=ec("glances-plugin-gpu"),g=ec("glances-plugin-mem"),b=ec("glances-plugin-memswap"),y=ec("glances-plugin-load"),v=ec("glances-plugin-vms"),x=ec("glances-plugin-containers"),w=ec("glances-plugin-process"),_=ec("glances-plugin-alert");return o.dataLoaded?o.args.help_tag?(xu(),Eu(s,{key:1})):(xu(),Au("main",Gp,[Ru(" Display minimal header on low screen size (smarthphone) "),Iu("div",Wp,[Iu("div",Kp,[o.args.disable_system?Ru("v-if",!0):(xu(),Au("div",Xp,[Pu(a,{data:o.data},null,8,["data"])])),o.args.disable_uptime?Ru("v-if",!0):(xu(),Au("div",Qp,[Pu(l,{data:o.data},null,8,["data"])]))])]),Ru(" Display standard header on others screen sizes "),Iu("div",Zp,[Iu("div",Yp,[o.args.disable_system?Ru("v-if",!0):(xu(),Au("div",Jp,[Pu(c,{data:o.data},null,8,["data"])])),o.args.disable_ip?Ru("v-if",!0):(xu(),Au("div",td,[Pu(u,{data:o.data},null,8,["data"])])),o.args.disable_now?Ru("v-if",!0):(xu(),Au("div",ed,[Pu(p,{data:o.data},null,8,["data"])])),o.args.disable_uptime?Ru("v-if",!0):(xu(),Au("div",rd,[Pu(l,{data:o.data},null,8,["data"])]))])]),Iu("div",nd,[o.args.disable_cloud?Ru("v-if",!0):(xu(),Au("div",id,[Pu(d,{data:o.data},null,8,["data"])]))]),Ru(" Display top menu with CPU, MEM, LOAD..."),Iu("div",od,[Ru(" Quicklook "),o.args.disable_quicklook?Ru("v-if",!0):(xu(),Au("div",sd,[Pu(m,{data:o.data},null,8,["data"])])),Ru(" CPU "),o.args.disable_cpu&&o.args.percpu?Ru("v-if",!0):(xu(),Au("div",ad,[Pu(f,{data:o.data},null,8,["data"])])),Ru(' TODO: percpu need to be refactor\n
\n \n
\n
\n \n
'),Ru(" GPU "),!o.args.disable_gpu&&o.hasGpu?(xu(),Au("div",ld,[Pu(h,{data:o.data},null,8,["data"])])):Ru("v-if",!0),Ru(" MEM "),o.args.disable_mem?Ru("v-if",!0):(xu(),Au("div",cd,[Pu(g,{data:o.data},null,8,["data"])])),Ru(" SWAP "),o.args.disable_memswap?Ru("v-if",!0):(xu(),Au("div",ud,[Pu(b,{data:o.data},null,8,["data"])])),Ru(" LOAD "),o.args.disable_load?Ru("v-if",!0):(xu(),Au("div",pd,[Pu(y,{data:o.data},null,8,["data"])]))]),Ru(" Display bottom of the screen with sidebar and processlist "),Iu("div",dd,[Iu("div",md,[o.args.disable_left_sidebar?Ru("v-if",!0):(xu(),Au("div",{key:0,class:xs(["col-3 d-none d-md-block",{"sidebar-min":!o.args.percpu,"sidebar-max":o.args.percpu}])},[(xu(!0),Au(fu,null,oc(o.leftMenu,(t=>{return xu(),Au(fu,null,[o.args[`disable_${t}`]?Ru("v-if",!0):(xu(),Eu((e=`glances-plugin-${t}`,Wo(e)?nc(tc,e,!1)||e:e||rc),{key:0,id:`${t}`,data:o.data},null,8,["id","data"]))],64);var e})),256))],2)),Iu("div",{class:xs(["col",{"sidebar-min":!o.args.percpu,"sidebar-max":o.args.percpu}])},[o.args.disable_vms?Ru("v-if",!0):(xu(),Eu(v,{key:0,data:o.data},null,8,["data"])),o.args.disable_containers?Ru("v-if",!0):(xu(),Eu(x,{key:1,data:o.data},null,8,["data"])),Pu(w,{data:o.data},null,8,["data"]),o.args.disable_alert?Ru("v-if",!0):(xu(),Eu(_,{key:2,data:o.data},null,8,["data"]))],2)])])])):(xu(),Au("div",Vp,e[0]||(e[0]=[Iu("div",{class:"loader"},"Glances is loading...",-1)])))}]]));rv.config.globalProperties.$filters=e,rv.mount("#app")})()})(); \ No newline at end of file diff --git a/glances/plugins/plugin/model.py b/glances/plugins/plugin/model.py index dfcd2d5c..7e463b8e 100644 --- a/glances/plugins/plugin/model.py +++ b/glances/plugins/plugin/model.py @@ -860,7 +860,7 @@ class GlancesPluginModel: return self._limits[self.plugin_name + '_log'][0].lower() == 'true' return default_action - def get_conf_value(self, value, header="", plugin_name=None, default=[]): + def get_conf_value(self, value, header="", plugin_name=None, convert_bool=False, default=[]): """Return the configuration (header_) value for the current plugin. ...or the one given by the plugin_name var. @@ -874,7 +874,8 @@ class GlancesPluginModel: plugin_name = plugin_name + '_' + header try: - return self._limits[plugin_name + '_' + value] + ret = self._limits[plugin_name + '_' + value] + return bool(ret[0]) if convert_bool else ret except KeyError: return default diff --git a/glances/plugins/processlist/__init__.py b/glances/plugins/processlist/__init__.py index c6725776..ce564425 100644 --- a/glances/plugins/processlist/__init__.py +++ b/glances/plugins/processlist/__init__.py @@ -338,10 +338,11 @@ class ProcesslistPlugin(GlancesPluginModel): return ret def _get_process_curses_memory_info(self, p, selected, args): - return [ - self._get_process_curses_vms(p, selected, args), - self._get_process_curses_rss(p, selected, args), - ] + ret = [] + if not self.get_conf_value('disable_virtual_memory', convert_bool=True, default=False): + ret.append(self._get_process_curses_vms(p, selected, args)) + ret.append(self._get_process_curses_rss(p, selected, args)) + return ret def _get_process_curses_pid(self, p, selected, args): """Return process PID curses""" @@ -739,8 +740,9 @@ class ProcesslistPlugin(GlancesPluginModel): msg = self.layout_header['mem'].format('MEM%') ret.append(self.curse_add_line(msg, sort_style if process_sort_key == 'memory_percent' else 'DEFAULT')) if 'memory_info' in display_stats: - msg = self.layout_header['virt'].format('VIRT') - ret.append(self.curse_add_line(msg, optional=True)) + if not self.get_conf_value('disable_virtual_memory', convert_bool=True, default=False): + msg = self.layout_header['virt'].format('VIRT') + ret.append(self.curse_add_line(msg, optional=True)) msg = self.layout_header['res'].format('RES') ret.append(self.curse_add_line(msg, optional=True)) if 'pid' in display_stats: @@ -952,3 +954,4 @@ class ProcesslistPlugin(GlancesPluginModel): # By default return 5 (corresponding to 99999 PID number) return 5 + return 5