EXtremeZip 2022.2.5 → 2022.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/extremezip.zzaqsv.rb +1 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d368c2ced983111e5abca75f712fd09f01f9a3c308860782ce9d17850aa84b9d
|
4
|
+
data.tar.gz: 8d9c5b14cd143fec9be4a4149b4ba191665bbdaab6e30c3de9492eb3183c5839
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 249baeec68ad080d1d4fbd7f158d11b794aeff51c4e429d447cea91c9e9cb925a0c487506b9112e1cccf530bfe325f1dd5c74b1914d63a53a972a592acbf00a2
|
7
|
+
data.tar.gz: 229d12c536bc4ecec1253e62bb98db4a9cba42f0808904bd36ad9460dcb801ad949dc33c2ac39ac4c0982d37d2248d28d73e1a0943a3d61ad1547238cdc21187
|
data/lib/extremezip.zzaqsv.rb
CHANGED
@@ -168,7 +168,7 @@ class ExtremeZip
|
|
168
168
|
|
169
169
|
currentBlockFile.close # 关闭文件
|
170
170
|
|
171
|
-
|
171
|
+
File.delete(currentBlockFile) # 删除数据块文件
|
172
172
|
|
173
173
|
currentBlockData
|
174
174
|
end
|
@@ -177,11 +177,8 @@ class ExtremeZip
|
|
177
177
|
def schedule1Block(filePartCounter)
|
178
178
|
currentBlockData = readBlockFile(filePartCounter) # 读取块文件内容
|
179
179
|
|
180
|
-
# currentTaskPipe = Cod.pipe # 任务分配管道
|
181
180
|
currentResponsePipe = Cod.pipe # 任务回复管道
|
182
181
|
|
183
|
-
puts("forking sub process, file part counter: #{filePartCounter}") # Debug.
|
184
|
-
|
185
182
|
p1 = fork do # 复制出子进程
|
186
183
|
compressInSubProcess(currentBlockData, currentResponsePipe) # 在子进程中具体执行的压缩代码
|
187
184
|
end # p1 = fork do #复制出子进程
|
@@ -202,11 +199,8 @@ class ExtremeZip
|
|
202
199
|
|
203
200
|
# 启动子进程。
|
204
201
|
def launchSubProcesses
|
205
|
-
|
206
|
-
#while ((@filePartCounter < @filePartAmount) && (true)) # 未处理完毕,并且未达到最大子进程个数
|
207
202
|
while ((@filePartCounter < @filePartAmount) && (@filePartCounter<@maxSubProcessAmount)) # 未处理完毕,并且未达到最大子进程个数
|
208
203
|
currentResponsePipe, p1 = schedule1Block(@filePartCounter) # 计划一个块的压缩计算
|
209
|
-
|
210
204
|
end # while processDataLength < victoriaFreshData.byte_size do #未处理完毕
|
211
205
|
|
212
206
|
[@processIdList, @responsePipeList]
|