提交 62d4e3fe 编写于 作者: O Orit Wasserman 提交者: Juan Quintela

Change total_time to total-time in MigrationStats

migration total_time was introduced in commit
d5f8a570 for QEMU 1.2
Signed-off-by: NOrit Wasserman <owasserm@redhat.com>
Reviewed-by: NLuiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: NEric Blake <eblake@redhat.com>
上级 9e1ba4cc
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
# #
# @total: total amount of bytes involved in the migration process # @total: total amount of bytes involved in the migration process
# #
# @total_time: tota0l amount of ms since migration started. If # @total-time: total amount of ms since migration started. If
# migration has ended, it returns the total migration # migration has ended, it returns the total migration
# time. (since 1.2) # time. (since 1.2)
# #
...@@ -268,7 +268,7 @@ ...@@ -268,7 +268,7 @@
## ##
{ 'type': 'MigrationStats', { 'type': 'MigrationStats',
'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int' , 'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int' ,
'total_time': 'int' } } 'total-time': 'int' } }
## ##
# @MigrationInfo # @MigrationInfo
......
...@@ -2122,6 +2122,9 @@ The main json-object contains the following: ...@@ -2122,6 +2122,9 @@ The main json-object contains the following:
- "transferred": amount transferred (json-int) - "transferred": amount transferred (json-int)
- "remaining": amount remaining (json-int) - "remaining": amount remaining (json-int)
- "total": total (json-int) - "total": total (json-int)
- "total-time": total amount of ms since migration started. If
migration has ended, it returns the total migration time
(json-int)
- "disk": only present if "status" is "active" and it is a block migration, - "disk": only present if "status" is "active" and it is a block migration,
it is a json-object with the following disk information (in bytes): it is a json-object with the following disk information (in bytes):
- "transferred": amount transferred (json-int) - "transferred": amount transferred (json-int)
...@@ -2154,7 +2157,8 @@ Examples: ...@@ -2154,7 +2157,8 @@ Examples:
"ram":{ "ram":{
"transferred":123, "transferred":123,
"remaining":123, "remaining":123,
"total":246 "total":246,
"total-time":12345
} }
} }
} }
...@@ -2168,7 +2172,8 @@ Examples: ...@@ -2168,7 +2172,8 @@ Examples:
"ram":{ "ram":{
"total":1057024, "total":1057024,
"remaining":1053304, "remaining":1053304,
"transferred":3720 "transferred":3720,
"total-time":12345
}, },
"disk":{ "disk":{
"total":20971520, "total":20971520,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册