Compute history size in the worker

This commit is contained in:
yflory
2020-02-04 13:52:32 +01:00
parent d736f783e7
commit 689ea40a92
4 changed files with 93 additions and 24 deletions

View File

@@ -764,8 +764,6 @@ define([
if (bytes === 0) { return void cb(void 0, $d); }
var formatted = UIElements.prettySize(bytes);
historyBytes = Math.floor(0.2*bytes); // XXX test data
if (!owned || !historyBytes || historyBytes > bytes) {
$d.append(h('div.cp-app-prop', [Messages.upload_size, h('br'), h('span.cp-app-prop-content', formatted)]));
return void cb(void 0, $d);