From 89e5dd7b39f8ad8d62b4b99f8af8fe73271d7c21 Mon Sep 17 00:00:00 2001 From: Dustan Kraus Date: Fri, 30 Jun 2023 13:47:43 -0700 Subject: [PATCH] cleanup --- include/linux_parser.h | 18 +++++++++--------- include/processor.h | 5 +++++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/include/linux_parser.h b/include/linux_parser.h index 01b3d278..18b17e69 100644 --- a/include/linux_parser.h +++ b/include/linux_parser.h @@ -103,15 +103,6 @@ long Jiffies(); */ long ActiveJiffies(); -/** - * @brief This returns the total number of active Jiffies for the process - * - * @param[in] pid: process id - * - * @return total number of active Jiffies for the process - */ -long ActiveJiffies(int pid); - /** * @brief This returns the total number of idle Jiffies for the system * @@ -156,6 +147,15 @@ std::string Uid(int pid); */ std::string User(int pid); +/** + * @brief This returns the total number of active Jiffies for the process + * + * @param[in] pid: process id + * + * @return total number of active Jiffies for the process + */ +long ActiveJiffies(int pid); + /** * @brief Read and return the uptime of a process in seconds * diff --git a/include/processor.h b/include/processor.h index 8cb78b4f..9c596d8e 100644 --- a/include/processor.h +++ b/include/processor.h @@ -3,6 +3,11 @@ class Processor { public: + /** + * @brief This returns the processor utilization (0->1) + * + * @return processor utilization (0->1) + */ float Utilization(); private: