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
8dd924cc
Commit
8dd924cc
authored
Jun 18, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use 1024*1024 instead of 1000000 for disk io limits
parent
76b1b90a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
HDEdit.js
www/manager/qemu/HDEdit.js
+4
-4
No files found.
www/manager/qemu/HDEdit.js
View file @
8dd924cc
...
@@ -40,12 +40,12 @@ Ext.define('PVE.qemu.HDInputPanel', {
...
@@ -40,12 +40,12 @@ Ext.define('PVE.qemu.HDInputPanel', {
}
}
if
(
values
.
bps_rd
)
{
if
(
values
.
bps_rd
)
{
me
.
drive
.
bps_rd
=
Ext
.
Number
.
toFixed
(
values
.
bps_rd
*
10
00000
);
me
.
drive
.
bps_rd
=
Ext
.
Number
.
toFixed
(
values
.
bps_rd
*
10
24
*
1024
);
}
else
{
}
else
{
delete
me
.
drive
.
bps_rd
;
delete
me
.
drive
.
bps_rd
;
}
}
if
(
values
.
bps_wr
)
{
if
(
values
.
bps_wr
)
{
me
.
drive
.
bps_wr
=
Ext
.
Number
.
toFixed
(
values
.
bps_wr
*
10
00000
);
me
.
drive
.
bps_wr
=
Ext
.
Number
.
toFixed
(
values
.
bps_wr
*
10
24
*
1024
);
}
else
{
}
else
{
delete
me
.
drive
.
bps_wr
;
delete
me
.
drive
.
bps_wr
;
}
}
...
@@ -102,8 +102,8 @@ Ext.define('PVE.qemu.HDInputPanel', {
...
@@ -102,8 +102,8 @@ Ext.define('PVE.qemu.HDInputPanel', {
values
.
nobackup
=
(
drive
.
backup
===
'
no
'
);
values
.
nobackup
=
(
drive
.
backup
===
'
no
'
);
values
.
diskformat
=
drive
.
format
||
'
raw
'
;
values
.
diskformat
=
drive
.
format
||
'
raw
'
;
values
.
cache
=
drive
.
cache
||
''
;
values
.
cache
=
drive
.
cache
||
''
;
values
.
bps_rd
=
drive
.
bps_rd
/
1000000
;
values
.
bps_rd
=
drive
.
bps_rd
/
(
1024
*
1024
)
;
values
.
bps_wr
=
drive
.
bps_wr
/
1000000
;
values
.
bps_wr
=
drive
.
bps_wr
/
(
1024
*
1024
)
;
values
.
iops_rd
=
drive
.
iops_rd
;
values
.
iops_rd
=
drive
.
iops_rd
;
values
.
iops_wr
=
drive
.
iops_wr
;
values
.
iops_wr
=
drive
.
iops_wr
;
...
...
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