Skip to content

Commit

Permalink
Fixes in statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
opengs committed Jan 27, 2024
1 parent 0d01016 commit 24bb4f4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions lib/module/distress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,17 @@ export class Distress extends Module<Config> {
value = value.toLowerCase()

if (value.includes("kb")) {
return Number(value.split("kb")[0]) * 1024
return Number(value.split("kb")[0]) * 128
} else if (value.includes("mb")) {
return Number(value.split("mb")[0]) * 1024 * 1024
return Number(value.split("mb")[0]) * 128 * 1024
} else if (value.includes("gb")) {
return Number(value.split("gb")[0]) * 1024 * 1024 * 1024
return Number(value.split("gb")[0]) * 128 * 1024 * 1024
} else if (value.includes("tb")) {
return Number(value.split("tb")[0]) * 1024 * 1024 * 1024 * 1024
return Number(value.split("tb")[0]) * 128 * 1024 * 1024 * 1024
} else if (value.includes("pb")) {
return Number(value.split("pb")[0]) * 1024 * 1024 * 1024 * 1024 * 1024
return Number(value.split("pb")[0]) * 128 * 1024 * 1024 * 1024 * 1024
} else if (value.includes("eb")) {
return Number(value.split("eb")[0]) * 1024 * 1024 * 1024 * 1024 * 1024 * 1024
return Number(value.split("eb")[0]) * 128 * 1024 * 1024 * 1024 * 1024 * 1024
} else {
return Number(value.split("b")[0])
}
Expand Down
12 changes: 6 additions & 6 deletions lib/module/mhddosproxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,17 @@ export class MHDDOSProxy extends Module<Config> {
value = value.toLowerCase()

if (value.includes("kb")) {
return Number(value.split(" ")[0]) * 125
return Number(value.split(" ")[0]) * 128
} else if (value.includes("mb")) {
return Number(value.split(" ")[0]) * 125 * 1024
return Number(value.split(" ")[0]) * 128 * 1024
} else if (value.includes("gb")) {
return Number(value.split(" ")[0]) * 125 * 1024 * 1024
return Number(value.split(" ")[0]) * 128 * 1024 * 1024
} else if (value.includes("tb")) {
return Number(value.split(" ")[0]) * 125 * 1024 * 1024 * 1024
return Number(value.split(" ")[0]) * 128 * 1024 * 1024 * 1024
} else if (value.includes("pb")) {
return Number(value.split(" ")[0]) * 125 * 1024 * 1024 * 1024 * 1024
return Number(value.split(" ")[0]) * 128 * 1024 * 1024 * 1024 * 1024
} else if (value.includes("eb")) {
return Number(value.split(" ")[0]) * 125 * 1024 * 1024 * 1024 * 1024 * 1024
return Number(value.split(" ")[0]) * 128 * 1024 * 1024 * 1024 * 1024 * 1024
} else {
return Number(value.split(" ")[0])
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "itarmykit",
"version": "1.3.1",
"version": "1.3.2",
"description": "IT Army Kit",
"productName": "IT Army Kit",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.winxp.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "itarmykit",
"version": "1.3.1",
"version": "1.3.2",
"description": "IT Army Kit",
"productName": "IT Army Kit",
"author": {
Expand Down

0 comments on commit 24bb4f4

Please sign in to comment.