Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蜕变的菜鸟
glances
提交
6d8521fb
G
glances
项目概览
蜕变的菜鸟
/
glances
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
glances
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6d8521fb
编写于
5月 08, 2015
作者:
N
nicolargo
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' of
https://github.com/nicolargo/glances
into develop
上级
afe22e84
58e611fd
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
80 addition
and
47 deletion
+80
-47
glances/outputs/static/html/plugins/cpu_more.html
glances/outputs/static/html/plugins/cpu_more.html
+3
-3
glances/outputs/static/html/plugins/diskio.html
glances/outputs/static/html/plugins/diskio.html
+1
-1
glances/outputs/static/html/plugins/fs.html
glances/outputs/static/html/plugins/fs.html
+1
-1
glances/outputs/static/html/plugins/load.html
glances/outputs/static/html/plugins/load.html
+3
-3
glances/outputs/static/html/plugins/mem.html
glances/outputs/static/html/plugins/mem.html
+2
-2
glances/outputs/static/html/plugins/mem_more.html
glances/outputs/static/html/plugins/mem_more.html
+6
-6
glances/outputs/static/html/plugins/memswap.html
glances/outputs/static/html/plugins/memswap.html
+3
-3
glances/outputs/static/html/plugins/network.html
glances/outputs/static/html/plugins/network.html
+1
-1
glances/outputs/static/html/plugins/processlist.html
glances/outputs/static/html/plugins/processlist.html
+2
-2
glances/outputs/static/html/plugins/system.html
glances/outputs/static/html/plugins/system.html
+5
-6
glances/outputs/static/html/stats.html
glances/outputs/static/html/stats.html
+1
-1
glances/outputs/static/js/filters.js
glances/outputs/static/js/filters.js
+52
-18
未找到文件。
glances/outputs/static/html/plugins/cpu_more.html
浏览文件 @
6d8521fb
...
...
@@ -5,19 +5,19 @@
{{result["cpu"].nice}}%
</div>
</div>
<div
class=
"table-row"
>
<div
class=
"table-row"
ng-if=
"result['cpu'].irq != undefined"
>
<div
class=
"table-cell text-left"
>
irq:
</div>
<div
class=
"table-cell"
>
{{result["cpu"].irq}}%
</div>
</div>
<div
class=
"table-row"
>
<div
class=
"table-row"
ng-if=
"result['cpu'].iowait != undefined"
>
<div
class=
"table-cell text-left"
>
iowait:
</div>
<div
class=
"table-cell"
ng-class=
"getClass('cpu', 'cpu_iowait_', result['cpu'].iowait, 1)"
>
{{result["cpu"].iowait}}%
</div>
</div>
<div
class=
"table-row"
>
<div
class=
"table-row"
ng-if=
"result['cpu'].steal != undefined"
>
<div
class=
"table-cell text-left"
>
steal:
</div>
<div
class=
"table-cell"
ng-class=
"getClass('cpu', 'cpu_steal_', result['cpu'].steal, 0)"
>
{{result["cpu"].steal}}%
...
...
glances/outputs/static/html/plugins/diskio.html
浏览文件 @
6d8521fb
...
...
@@ -3,7 +3,7 @@
<div
class=
"table-cell"
>
R/s
</div>
<div
class=
"table-cell"
>
W/s
</div>
</div>
<div
class=
"table-row"
ng-repeat=
"disk in result['diskio']"
>
<div
class=
"table-row"
ng-repeat=
"disk in result['diskio']
| orderBy: 'disk_name'
"
>
<div
class=
"table-cell text-left"
>
{{disk.disk_name | min_size}}
</div>
<div
class=
"table-cell"
>
{{disk.read_bytes | bytes}}
</div>
<div
class=
"table-cell"
>
{{disk.write_bytes | bytes}}
</div>
...
...
glances/outputs/static/html/plugins/fs.html
浏览文件 @
6d8521fb
...
...
@@ -3,7 +3,7 @@
<div
class=
"table-cell"
>
Used
</div>
<div
class=
"table-cell"
>
Total
</div>
</div>
<div
class=
"table-row"
ng-repeat=
"fs in result['fs']"
>
<div
class=
"table-row"
ng-repeat=
"fs in result['fs']
| orderBy: 'mnt_point'
"
>
<div
class=
"table-cell text-left"
>
{{fs.mnt_point}} ({{fs.device_name}})
</div>
<div
class=
"table-cell"
ng-class=
"getClass('fs', 'fs_', fs.percent, 0)"
>
{{fs.size - fs.free | bytes}}
...
...
glances/outputs/static/html/plugins/load.html
浏览文件 @
6d8521fb
...
...
@@ -6,19 +6,19 @@
<div
class=
"table-row"
>
<div
class=
"table-cell text-left"
>
1 min:
</div>
<div
class=
"table-cell"
>
{{result["load"].min1}}
{{result["load"].min1
| number : 2
}}
</div>
</div>
<div
class=
"table-row"
>
<div
class=
"table-cell text-left"
>
5 min:
</div>
<div
class=
"table-cell"
ng-class=
"getClass('load', 'load_', result['load'].min5, 0)"
>
{{result["load"].min5}}
{{result["load"].min5
| number : 2
}}
</div>
</div>
<div
class=
"table-row"
>
<div
class=
"table-cell text-left"
>
15 min:
</div>
<div
class=
"table-cell"
ng-class=
"getClass('load', 'load_', result['load'].min15, 1)"
>
{{result["load"].min15}}
{{result["load"].min15
| number : 2
}}
</div>
</div>
</div>
glances/outputs/static/html/plugins/mem.html
浏览文件 @
6d8521fb
...
...
@@ -5,7 +5,7 @@
</div>
<div
class=
"table-row"
>
<div
class=
"table-cell text-left"
>
total:
</div>
<div
class=
"table-cell"
>
{{result["mem"].total | bytes
:2
}}
</div>
<div
class=
"table-cell"
>
{{result["mem"].total | bytes}}
</div>
</div>
<div
class=
"table-row"
>
<div
class=
"table-cell text-left"
>
used:
</div>
...
...
@@ -15,6 +15,6 @@
</div>
<div
class=
"table-row"
>
<div
class=
"table-cell text-left"
>
free:
</div>
<div
class=
"table-cell"
>
{{result["mem"].free | bytes
:2
}}
</div>
<div
class=
"table-cell"
>
{{result["mem"].free | bytes}}
</div>
</div>
</div>
glances/outputs/static/html/plugins/mem_more.html
浏览文件 @
6d8521fb
<div
class=
"table"
>
<div
class=
"table-row"
>
<div
class=
"table-cell text-left"
>
active:
</div>
<div
class=
"table-cell"
>
{{result["mem"].active | bytes
:2
}}
</div>
<div
class=
"table-cell"
>
{{result["mem"].active | bytes}}
</div>
</div>
<div
class=
"table-row"
>
<div
class=
"table-cell text-left"
>
inactive:
</div>
<div
class=
"table-cell"
>
{{result["mem"].inactive | bytes
:2
}}
</div>
<div
class=
"table-cell"
>
{{result["mem"].inactive | bytes}}
</div>
</div>
<div
class=
"table-row"
>
<div
class=
"table-row"
ng-if=
"result['mem'].buffer != undefined"
>
<div
class=
"table-cell text-left"
>
buffers:
</div>
<div
class=
"table-cell"
>
{{result["mem"].buffers | bytes
:2
}}
</div>
<div
class=
"table-cell"
>
{{result["mem"].buffers | bytes}}
</div>
</div>
<div
class=
"table-row"
>
<div
class=
"table-row"
ng-if=
"result['mem'].cached != undefined"
>
<div
class=
"table-cell text-left"
>
cached:
</div>
<div
class=
"table-cell"
>
{{result["mem"].cached | bytes
:2
}}
</div>
<div
class=
"table-cell"
>
{{result["mem"].cached | bytes}}
</div>
</div>
</div>
glances/outputs/static/html/plugins/memswap.html
浏览文件 @
6d8521fb
...
...
@@ -5,16 +5,16 @@
</div>
<div
class=
"table-row"
>
<div
class=
"table-cell text-left"
>
total:
</div>
<div
class=
"table-cell"
>
{{result["memswap"].total | bytes
:2
}}
</div>
<div
class=
"table-cell"
>
{{result["memswap"].total | bytes}}
</div>
</div>
<div
class=
"table-row"
>
<div
class=
"table-cell text-left"
>
used:
</div>
<div
class=
"table-cell"
ng-class=
"getClass('memswap', 'memswap_', result['memswap'].percent, 1)"
>
{{result["memswap"].used | bytes
:2
}}
{{result["memswap"].used | bytes}}
</div>
</div>
<div
class=
"table-row"
>
<div
class=
"table-cell text-left"
>
free:
</div>
<div
class=
"table-cell"
>
{{result["memswap"].free | bytes
:2
}}
</div>
<div
class=
"table-cell"
>
{{result["memswap"].free | bytes}}
</div>
</div>
</div>
glances/outputs/static/html/plugins/network.html
浏览文件 @
6d8521fb
...
...
@@ -3,7 +3,7 @@
<div
class=
"table-cell"
>
Rx/s
</div>
<div
class=
"table-cell"
>
Tx/s
</div>
</div>
<div
class=
"table-row"
ng-repeat=
"network in result['network'] | orderBy:
network.interface_name
"
>
<div
class=
"table-row"
ng-repeat=
"network in result['network'] | orderBy:
'interface_name'
"
>
<div
class=
"table-cell text-left"
>
{{network.interface_name | min_size}}
</div>
<div
class=
"table-cell"
ng-if=
"show.network_by_bytes"
>
{{network.rx | bytes}}
</div>
<div
class=
"table-cell"
ng-if=
"show.network_by_bytes"
>
{{network.tx | bytes}}
</div>
...
...
glances/outputs/static/html/plugins/processlist.html
浏览文件 @
6d8521fb
...
...
@@ -16,8 +16,8 @@
<div
class=
"table-row"
ng-repeat=
"process in result['processlist'] | orderBy:sorter.column:sorter.isReverseColumn(sorter.column)"
>
<div
class=
"table-cell"
ng-class=
"getClass('processlist', 'processlist_cpu_', process.cpu_percent, 0)"
>
{{process.cpu_percent | number:1}}
</div>
<div
class=
"table-cell"
ng-class=
"getClass('processlist', 'processlist_mem_', process.memory_percent, 0)"
>
{{process.memory_percent | number:1}}
</div>
<div
class=
"table-cell hidden-xs hidden-sm"
>
{{process.memvirt | bytes
:1
}}
</div>
<div
class=
"table-cell hidden-xs hidden-sm"
>
{{process.memres | bytes
:1
}}
</div>
<div
class=
"table-cell hidden-xs hidden-sm"
>
{{process.memvirt | bytes}}
</div>
<div
class=
"table-cell hidden-xs hidden-sm"
>
{{process.memres | bytes}}
</div>
<div
class=
"table-cell"
>
{{process.pid}}
</div>
<div
class=
"table-cell text-left"
>
{{process.username}}
</div>
<div
class=
"table-cell"
>
{{process.nice | exclamation}}
</div>
...
...
glances/outputs/static/html/plugins/system.html
浏览文件 @
6d8521fb
<!--<span class="title">Refresh time </span> <span class="hidden-xs hidden-sm">{{refreshTime}}s
<button ng-click="refreshTime = refreshTime - 1" ng-disabled="refreshTime <= 1">-</button>
<button ng-click="refreshTime = refreshTime + 1">+</button>
</span> -->
<span
class=
"title"
>
{{result["system"].hostname}}
</span>
<span
class=
"hidden-xs hidden-sm"
>
({{result["system"].hr_name}} / {{result["system"].os_name}} {{result["system"].os_version}})
</span>
<span
class=
"title"
>
{{ result["system"].hostname }}
</span>
<span
ng-if=
"result['os_name'] == 'Linux'"
class=
"hidden-xs hidden-sm"
>
({{ result["system"].hr_name }} / {{ result["system"].os_name }} {{ result["system"].os_version }})
</span>
<span
ng-if=
"result['os_name'] != 'Linux'"
class=
"hidden-xs hidden-sm"
>
({{ result["system"].os_name }} {{ result["system"].os_version }} {{ result["system"].platform }})
</span>
glances/outputs/static/html/stats.html
浏览文件 @
6d8521fb
...
...
@@ -12,7 +12,7 @@
<section
id=
"system"
class=
"plugin"
ng-include
src=
"'plugins/system.html'"
></section>
</div>
<div
class=
"pull-left"
>
<section
id=
"ip"
class=
"plugin"
ng-include
src=
"'plugins/ip.html'"
></section>
<section
id=
"ip"
class=
"plugin"
ng-i
f=
"result['ip'].address != undefined"
ng-i
nclude
src=
"'plugins/ip.html'"
></section>
</div>
<div
class=
"pull-right"
>
<section
id=
"uptime"
class=
"plugin"
ng-include
src=
"'plugins/uptime.html'"
></section>
...
...
glances/outputs/static/js/filters.js
浏览文件 @
6d8521fb
...
...
@@ -16,29 +16,63 @@ glancesApp.filter('exclamation', function() {
};
});
/**
* Fork from https://gist.github.com/thomseddon/3511330
* => \u00A0
* WARNING : kilobyte (kB) != kibibyte (KiB) (more info here : http://en.wikipedia.org/wiki/Byte )
**/
glancesApp
.
filter
(
'
bytes
'
,
function
()
{
return
function
(
bytes
,
precision
)
{
return
function
(
bytes
,
low_precision
)
{
low_precision
=
low_precision
||
false
;
if
(
isNaN
(
parseFloat
(
bytes
))
||
!
isFinite
(
bytes
)
||
bytes
==
0
){
return
'
0
B
'
;
return
'
0
'
;
}
var
units
=
[
'
B
'
,
'
KB
'
,
'
MB
'
,
'
GB
'
,
'
TB
'
,
'
PB
'
],
number
=
Math
.
floor
(
Math
.
log
(
bytes
)
/
Math
.
log
(
1000
));
return
(
bytes
/
Math
.
pow
(
1000
,
Math
.
floor
(
number
))).
toFixed
(
precision
)
+
units
[
number
];
var
symbols
=
[
'
K
'
,
'
M
'
,
'
G
'
,
'
T
'
,
'
P
'
,
'
E
'
,
'
Z
'
,
'
Y
'
];
var
prefix
=
{
'
Y
'
:
1208925819614629174706176
,
'
Z
'
:
1180591620717411303424
,
'
E
'
:
1152921504606846976
,
'
P
'
:
1125899906842624
,
'
T
'
:
1099511627776
,
'
G
'
:
1073741824
,
'
M
'
:
1048576
,
'
K
'
:
1024
};
var
reverseSymbols
=
_
(
symbols
).
reverse
().
value
();
for
(
var
i
=
0
;
i
<
reverseSymbols
.
length
;
i
++
)
{
var
symbol
=
reverseSymbols
[
i
];
var
value
=
bytes
/
prefix
[
symbol
];
if
(
value
>
1
)
{
var
decimal_precision
=
0
;
if
(
value
<
10
)
{
decimal_precision
=
2
;
}
else
if
(
value
<
100
)
{
decimal_precision
=
1
;
}
if
(
low_precision
)
{
if
(
symbol
==
'
MK
'
)
{
decimal_precision
=
0
;
}
else
{
decimal_precision
=
_
.
min
([
1
,
decimal_precision
]);
}
}
else
if
(
symbol
==
'
K
'
)
{
decimal_precision
=
0
;
}
return
parseFloat
(
value
).
toFixed
(
decimal_precision
)
+
symbol
;
}
}
return
bytes
;
}
});
glancesApp
.
filter
(
'
bits
'
,
function
()
{
return
function
(
bits
,
precision
)
{
if
(
isNaN
(
parseFloat
(
bits
))
||
!
isFinite
(
bits
)
||
bits
==
0
){
return
'
0b
'
;
}
var
units
=
[
'
b
'
,
'
kb
'
,
'
Mb
'
,
'
Gb
'
,
'
Tb
'
,
'
Pb
'
],
number
=
Math
.
floor
(
Math
.
log
(
bits
)
/
Math
.
log
(
1000
));
return
(
bits
/
Math
.
pow
(
1000
,
Math
.
floor
(
number
))).
toFixed
(
precision
)
+
units
[
number
];
glancesApp
.
filter
(
'
bits
'
,
function
(
$filter
)
{
return
function
(
bits
,
low_precision
)
{
bits
=
Math
.
round
(
bits
)
*
8
;
return
$filter
(
'
bytes
'
)(
bits
,
low_precision
)
+
'
b
'
;
}
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录