Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
0ed35e09
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0ed35e09
编写于
4月 15, 2016
作者:
N
Nitesh Konkar
提交者:
Andrea Bolognani
4月 15, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Return error when --start <number> in cpu-stats is invalid.
Signed-off-by:
N
Nitesh Konkar
<
nitkon12@linux.vnet.ibm.com
>
上级
6306ee62
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
7 addition
and
0 deletion
+7
-0
tools/virsh-domain.c
tools/virsh-domain.c
+7
-0
未找到文件。
tools/virsh-domain.c
浏览文件 @
0ed35e09
...
@@ -7357,6 +7357,13 @@ cmdCPUStats(vshControl *ctl, const vshCmd *cmd)
...
@@ -7357,6 +7357,13 @@ cmdCPUStats(vshControl *ctl, const vshCmd *cmd)
/* get number of cpus on the node */
/* get number of cpus on the node */
if
((
max_id
=
virDomainGetCPUStats
(
dom
,
NULL
,
0
,
0
,
0
,
0
))
<
0
)
if
((
max_id
=
virDomainGetCPUStats
(
dom
,
NULL
,
0
,
0
,
0
,
0
))
<
0
)
goto
failed_stats
;
goto
failed_stats
;
if
(
cpu
>=
max_id
)
{
vshError
(
ctl
,
"Start CPU %d is out of range (min: 0, max: %d)"
,
cpu
,
max_id
-
1
);
goto
cleanup
;
}
if
(
show_count
<
0
||
show_count
>
max_id
)
{
if
(
show_count
<
0
||
show_count
>
max_id
)
{
if
(
show_count
>
max_id
)
if
(
show_count
>
max_id
)
vshPrint
(
ctl
,
_
(
"Only %d CPUs available to show
\n
"
),
max_id
);
vshPrint
(
ctl
,
_
(
"Only %d CPUs available to show
\n
"
),
max_id
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录