[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 5434098b4a 11/19: Show speed
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 5434098b4a 11/19: Show speed |
Date: |
Thu, 1 Aug 2024 01:00:11 -0400 (EDT) |
branch: elpa/hyperdrive
commit 5434098b4a8592e0371fb35202cf339413941c02
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Show speed
---
hyperdrive-download-monitor.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hyperdrive-download-monitor.el b/hyperdrive-download-monitor.el
index c0957cb6e5..75c69481d0 100644
--- a/hyperdrive-download-monitor.el
+++ b/hyperdrive-download-monitor.el
@@ -62,13 +62,15 @@ UPDATE-INTERVAL seconds."
(current-size (or (and attributes
(file-attribute-size attributes))
0))
- (elapsed (float-time (time-subtract (current-time)
started-at))))
+ (elapsed (float-time (time-subtract (current-time)
started-at)))
+ (speed (/ current-size elapsed)))
;; TODO: Consider using `format-spec'.
(erase-buffer)
(insert preamble
"Downloaded: " (file-size-human-readable current-size nil " ")
" / " (file-size-human-readable total-size) "\n"
- "Elapsed: " (format-seconds "%hh%mm%ss%z" elapsed)))))
+ "Elapsed: " (format-seconds "%hh%mm%ss%z" elapsed) "\n"
+ "Speed: " (file-size-human-readable speed) "/s"))))
(defun h//download-monitor-close (buffer)
"Close download monitor BUFFER."
- [nongnu] elpa/hyperdrive 84b59e1f8f 02/19: WIP: hyperdrive-download-monitor, (continued)
- [nongnu] elpa/hyperdrive 84b59e1f8f 02/19: WIP: hyperdrive-download-monitor, ELPA Syncer, 2024/08/01
- [nongnu] elpa/hyperdrive c35423cdd4 12/19: Use special-mode, ELPA Syncer, 2024/08/01
- [nongnu] elpa/hyperdrive 015917ecd3 14/19: Fix: (h//download-monitor) Cancel timer if buffer killed, ELPA Syncer, 2024/08/01
- [nongnu] elpa/hyperdrive 4742b430fa 07/19: Fix: Killing monitor buffer, ELPA Syncer, 2024/08/01
- [nongnu] elpa/hyperdrive 95323b4bf6 08/19: Refactoring, fixes, ELPA Syncer, 2024/08/01
- [nongnu] elpa/hyperdrive 35d04e8cc5 18/19: Fix: Close monitor from ready hook; ensure buffer is live, ELPA Syncer, 2024/08/01
- [nongnu] elpa/hyperdrive 4c5fc6ca76 19/19: Merge: Download monitor fixes/improvements, ELPA Syncer, 2024/08/01
- [nongnu] elpa/hyperdrive 9156b1a7ac 16/19: Fix: Ensure timer before canceling, ELPA Syncer, 2024/08/01
- [nongnu] elpa/hyperdrive 34e27bca27 10/19: Show elapsed time, ELPA Syncer, 2024/08/01
- [nongnu] elpa/hyperdrive 36744a367d 15/19: Add: Restart gateway button in monitor buffer, ELPA Syncer, 2024/08/01
- [nongnu] elpa/hyperdrive 5434098b4a 11/19: Show speed,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 04caa99d91 13/19: Merge: Download monitor for installing gateway, ELPA Syncer, 2024/08/01
- [nongnu] elpa/hyperdrive fc3b754ca4 17/19: Fix: (hyperdrive-menu) Make install command non-transient, ELPA Syncer, 2024/08/01