Skip to content

Commit d718bed

Browse files
committed
Adjust wages of installation steps
1 parent 7c66cc5 commit d718bed

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Assets/PatchKit Patcher/Scripts/AppUpdater/Status/StatusWeightHelper.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static class StatusWeightHelper
99
{
1010
public static double GetUnarchivePackageWeight(long size)
1111
{
12-
return BytesToWeight(size)*0.1;
12+
return BytesToWeight(size)*0.5;
1313
}
1414

1515
public static double GetUninstallWeight()
@@ -19,12 +19,12 @@ public static double GetUninstallWeight()
1919

2020
public static double GetCheckVersionIntegrityWeight(AppContentSummary summary)
2121
{
22-
return BytesToWeight(summary.Size)*0.05;
22+
return BytesToWeight(summary.Size) * 0.05;
2323
}
2424

2525
public static double GetCopyContentFilesWeight(AppContentSummary summary)
2626
{
27-
return BytesToWeight(summary.Size) *0.01;
27+
return BytesToWeight(summary.Size) * 0.5;
2828
}
2929

3030
public static double GetRepairFilesWeight(Pack1Meta.FileEntry[] files)
@@ -35,12 +35,12 @@ public static double GetRepairFilesWeight(Pack1Meta.FileEntry[] files)
3535

3636
public static double GetAddDiffFilesWeight(AppDiffSummary summary)
3737
{
38-
return BytesToWeight(summary.Size) * 0.01;
38+
return BytesToWeight(summary.Size) * 0.5;
3939
}
4040

4141
public static double GetModifyDiffFilesWeight(AppDiffSummary summary)
4242
{
43-
return BytesToWeight(summary.Size) * 0.2;
43+
return BytesToWeight(summary.Size) * 0.5;
4444
}
4545

4646
public static double GetRemoveDiffFilesWeight(AppDiffSummary summary)
@@ -50,7 +50,7 @@ public static double GetRemoveDiffFilesWeight(AppDiffSummary summary)
5050

5151
public static double GetResourceDownloadWeight(RemoteResource resource)
5252
{
53-
return BytesToWeight(resource.Size)*1;
53+
return BytesToWeight(resource.Size);
5454
}
5555

5656
public static double GetDownloadWeight(long bytes)

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212

1313
### Changed
1414
- Set process priority to Low (#1375)
15+
- Adjust wages of installation steps (#1379)
1516

1617
### Fixed
1718
- Repairing files placed at long path (#1369)

0 commit comments

Comments
 (0)