Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
76b1b90a
Commit
76b1b90a
authored
Jun 14, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use MB/s instead of bytes/s
parent
05b98f42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
HDEdit.js
www/manager/qemu/HDEdit.js
+14
-14
No files found.
www/manager/qemu/HDEdit.js
View file @
76b1b90a
...
...
@@ -40,12 +40,12 @@ Ext.define('PVE.qemu.HDInputPanel', {
}
if
(
values
.
bps_rd
)
{
me
.
drive
.
bps_rd
=
values
.
bps_rd
;
me
.
drive
.
bps_rd
=
Ext
.
Number
.
toFixed
(
values
.
bps_rd
*
1000000
)
;
}
else
{
delete
me
.
drive
.
bps_rd
;
}
if
(
values
.
bps_wr
)
{
me
.
drive
.
bps_wr
=
values
.
bps_wr
;
me
.
drive
.
bps_wr
=
Ext
.
Number
.
toFixed
(
values
.
bps_wr
*
1000000
)
;
}
else
{
delete
me
.
drive
.
bps_wr
;
}
...
...
@@ -102,8 +102,8 @@ Ext.define('PVE.qemu.HDInputPanel', {
values
.
nobackup
=
(
drive
.
backup
===
'
no
'
);
values
.
diskformat
=
drive
.
format
||
'
raw
'
;
values
.
cache
=
drive
.
cache
||
''
;
values
.
bps_rd
=
drive
.
bps_rd
;
values
.
bps_wr
=
drive
.
bps_wr
;
values
.
bps_rd
=
drive
.
bps_rd
/
1000000
;
values
.
bps_wr
=
drive
.
bps_wr
/
1000000
;
values
.
iops_rd
=
drive
.
iops_rd
;
values
.
iops_wr
=
drive
.
iops_wr
;
...
...
@@ -241,9 +241,9 @@ Ext.define('PVE.qemu.HDInputPanel', {
me
.
bps_rd
=
Ext
.
widget
(
'
numberfield
'
,
{
name
:
'
bps_rd
'
,
minValue
:
1
000
,
step
:
1
000
,
fieldLabel
:
gettext
(
'
Read limit
'
)
+
'
(
bytes
/s)
'
,
minValue
:
1
,
step
:
1
,
fieldLabel
:
gettext
(
'
Read limit
'
)
+
'
(
MB
/s)
'
,
labelWidth
:
width2
,
emptyText
:
gettext
(
'
unlimited
'
)
});
...
...
@@ -251,9 +251,9 @@ Ext.define('PVE.qemu.HDInputPanel', {
me
.
bps_wr
=
Ext
.
widget
(
'
numberfield
'
,
{
name
:
'
bps_wr
'
,
minValue
:
1
000
,
step
:
1
000
,
fieldLabel
:
gettext
(
'
Write limit
'
)
+
'
(
bytes
/s)
'
,
minValue
:
1
,
step
:
1
,
fieldLabel
:
gettext
(
'
Write limit
'
)
+
'
(
MB
/s)
'
,
labelWidth
:
width2
,
emptyText
:
gettext
(
'
unlimited
'
)
});
...
...
@@ -261,8 +261,8 @@ Ext.define('PVE.qemu.HDInputPanel', {
me
.
iops_rd
=
Ext
.
widget
(
'
numberfield
'
,
{
name
:
'
iops_rd
'
,
minValue
:
10
00
,
step
:
10
00
,
minValue
:
10
,
step
:
10
,
fieldLabel
:
gettext
(
'
Read limit
'
)
+
'
(ops/s)
'
,
labelWidth
:
width2
,
emptyText
:
gettext
(
'
unlimited
'
)
...
...
@@ -271,8 +271,8 @@ Ext.define('PVE.qemu.HDInputPanel', {
me
.
iops_wr
=
Ext
.
widget
(
'
numberfield
'
,
{
name
:
'
iops_wr
'
,
minValue
:
10
00
,
step
:
10
00
,
minValue
:
10
,
step
:
10
,
fieldLabel
:
gettext
(
'
Write limit
'
)
+
'
(ops/s)
'
,
labelWidth
:
width2
,
emptyText
:
gettext
(
'
unlimited
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment