We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a2c43f commit 0b8253cCopy full SHA for 0b8253c
blobstamper/galley.cpp
@@ -129,6 +129,14 @@ GalleyVector::extract_internal(Blob &blob)
129
size_oracles.push_back(o);
130
size_oracle_total += o;
131
}
132
+ if (size_oracle_total == 0) /* special case: if total size is zero (means all oracles are zero) we will spread data evenly between all items*/
133
+ {
134
+ for(int i = 0; i<count_target; i++)
135
136
+ size_oracles[i] = 1;
137
+ size_oracle_total += 1;
138
+ }
139
140
141
/* Calculating available vairable size, that will be destributed between parts according to size oracles */
142
int data_size = blob.Size();
0 commit comments