[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 5291373a40 02/20: Change: (h//fill-listing-entr
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 5291373a40 02/20: Change: (h//fill-listing-entries) Fill blocks, blocks-downloaded |
Date: |
Tue, 6 Aug 2024 01:00:33 -0400 (EDT) |
branch: elpa/hyperdrive
commit 5291373a40cc55e1c3c60bae5386eaea6fbffc23
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change: (h//fill-listing-entries) Fill blocks, blocks-downloaded
---
hyperdrive-lib.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 5b0419f690..83704d2d25 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -740,15 +740,21 @@ LISTING should be an alist based on the JSON retrieved
in, e.g.,
`hyperdrive-dir-handler'. Fills existent version ranges for each
entry as a side-effect."
(mapcar
- (pcase-lambda ((map seq key value))
+ (pcase-lambda ((map seq key value blockLengthDownloaded))
(let* ((mtime (map-elt (map-elt value 'metadata) 'mtime))
(size (map-elt (map-elt value 'blob) 'byteLength))
+ (block-length (map-elt (map-elt value 'blob) 'blockLength))
(entry (he/create
:hyperdrive hyperdrive :path key :version version)))
(when mtime ; mtime is milliseconds since epoch
(setf (he/mtime entry) (seconds-to-time (/ mtime 1000.0))))
(when size
(setf (he/size entry) size))
+ (when block-length
+ (setf (map-elt (he/etc entry) 'block-length) block-length))
+ (when blockLengthDownloaded
+ (setf (map-elt (he/etc entry) 'block-length-downloaded)
+ blockLengthDownloaded))
(when seq
;; seq is the hyperdrive version *before* the entry was added/modified
(hyperdrive-update-existent-version-range entry (1+ seq)))
- [nongnu] elpa/hyperdrive updated (4c5fc6ca76 -> e2803b2290), ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive fef7847707 06/20: Change: (h/forget-file) Invalidate EWOC node to refresh size face, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 8bf9c94886 04/20: Change: (h/dir--format-entry) Faces for download state, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 5291373a40 02/20: Change: (h//fill-listing-entries) Fill blocks, blocks-downloaded,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive fcd07bbe46 10/20: Change: (hyperdrive-dir-handler) Remove call to he//fill, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 83bc480440 03/20: Change: (he//fill) Fill etc slot: blocks, blocks-downloaded, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 047abe89e2 17/20: Merge: Show how much of a file is downloaded in directory view, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 1d719631f0 07/20: Fix: (he//fill) Don't set nil values, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 14f0bd4aeb 08/20: Add: (he//invalidate) Move into separate function, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive af85d6a79b 01/20: Change: (h/entry) Note blocks, blocks-downloaded in etc slot, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 8f44b09e9f 09/20: Change: (he//api-then) Fill entry metadata, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive b10d5da0e2 11/20: Change: (he//api-then) Invalidate entry after filling metadata, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive e9eb705e85 12/20: Meta: Bump hyper-gateway-ushin to 3.11.0: Block-Length{, -Downloaded}, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 4768ce0640 18/20: Fix: (he//api-then) Only fill h/latest-version with latest version, ELPA Syncer, 2024/08/06