From ea08eeccae9297f7aabd2ef7f0c2517ac4549acc Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Tue, 20 Feb 2024 01:18:26 +0000 Subject: [PATCH] write in 30M --- kernel/Documentation/ABI/stable/sysfs-bus-usb | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/Documentation/ABI/stable/sysfs-bus-usb b/kernel/Documentation/ABI/stable/sysfs-bus-usb index b832eef..cad4bc2 100644 --- a/kernel/Documentation/ABI/stable/sysfs-bus-usb +++ b/kernel/Documentation/ABI/stable/sysfs-bus-usb @@ -50,8 +50,10 @@ Tools can use this file and the connected_duration file to compute the percentage of time that a device has been active. - For example, - echo $((100 * `cat active_duration` / `cat connected_duration`)) + For example:: + + echo $((100 * `cat active_duration` / `cat connected_duration`)) + will give an integer percentage. Note that this does not account for counter wrap. Users: -- Gitblit v1.6.2