Skip to content

Commit 43da51f

Browse files
committed
removed speed - not used
1 parent 368bc7e commit 43da51f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/tools/raid-calculator/raid-calculator.service.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ const raidCalculations = {
1111
// total disks * size
1212
return (num * size) * unit;
1313
},
14-
speed: function(num, size, unit){
15-
return `${num}x read and ${num}x write speed gain`;
16-
},
1714
fault: function(num, size, unit){
1815
return "None";
1916
}
@@ -28,10 +25,6 @@ const raidCalculations = {
2825
// total size is size of a single drive
2926
return size * unit;
3027
},
31-
speed: function(num, size, unit){
32-
// potential for all drives read at once
33-
return `Potential ${num}x read and no write speed gain`;
34-
},
3528
fault: function(num, size, unit){
3629
// FT = total - 1
3730
return `${num -1} drive failures`;
@@ -47,9 +40,6 @@ const raidCalculations = {
4740
// (N-1) * S (one drive for parity)
4841
return ((num - 1) * size) * unit;
4942
},
50-
speed: function(num, size, unit){
51-
return `${num - 1}x read speed gain and write speed penalty (due to parity calculations)`;
52-
},
5343
fault: function(num, size, unit){
5444
// always 1 failure
5545
return "1 drive failure";
@@ -65,9 +55,6 @@ const raidCalculations = {
6555
// (N-2) * S (2 parity)
6656
return ((num - 2) * size) * unit;
6757
},
68-
speed: function(num, size, unit){
69-
return `${num - 2}x read speed gain and write speed penalty (due to parity calculations)`;
70-
},
7158
fault: function(num, size, unit){
7259
// always 2 drive failures
7360
return "2 drive failures";
@@ -83,9 +70,6 @@ const raidCalculations = {
8370
// Total disks (stripe)/2 (mirror)
8471
return ((num * size) / 2) * unit;
8572
},
86-
speed: function(num, size, unit){
87-
return `${num - 2}x read speed gain and write speed penalty (due to parity calculations)`;
88-
},
8973
fault: function(num, size, unit){
9074
// one per mirror
9175
return "1 drive failure per mirrored set";

0 commit comments

Comments
 (0)