From 531b0cf28202c27a7712dc1d21641c39bfc2916c Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Wed, 19 Mar 2025 20:49:55 +0100 Subject: [PATCH] feat: added total units read/written as a tooltip (#2431) --- Modules/Disk/popup.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/Disk/popup.swift b/Modules/Disk/popup.swift index 2519942e..eebbae3c 100644 --- a/Modules/Disk/popup.swift +++ b/Modules/Disk/popup.swift @@ -826,6 +826,8 @@ internal class DetailsView: NSStackView { public func update(smart: smart_t?) { guard self.window?.isVisible ?? false, let smart else { return } + self.totalReadValueField?.toolTip = "\(smart.totalRead / (512 * 1000))" + self.totalWrittenValueField?.toolTip = "\(smart.totalWritten / (512 * 1000))" self.totalReadValueField?.stringValue = Units(bytes: smart.totalRead).getReadableMemory(style: .decimal) self.totalWrittenValueField?.stringValue = Units(bytes: smart.totalWritten).getReadableMemory(style: .decimal)