reuse working smartclt cmd

This commit is contained in:
2024-06-01 14:52:50 +02:00
parent fe11419e37
commit 84a2da8bc2
3 changed files with 61 additions and 19 deletions

View File

@ -45,6 +45,7 @@ private:
double d32TaskPercentage = 0U; // in percent for Shred (1 to 100)
time_t u32TimestampTaskStart = 0U; // unix timestamp for duration of an action
time_t u32TaskDuration = 0U; // time needed to complete the task
string desiredSmartctlCommand; //command used to gather S.M.A.R.T. values from drive
struct
{
@ -77,6 +78,7 @@ public:
uint32_t getPowerOnHours(void); // in hours
uint32_t getPowerCycles(void);
uint32_t getTemperature(void); // in Fahrenheit, just kidding: degree Celsius
void checkFrozenDrive(void);
void setDriveSMARTData(string modelFamily,
@ -100,6 +102,9 @@ public:
void setActionStartTimestamp();
time_t getActionStartTimestamp();
void setSmartcltCommand(string cmd);
string getSmartcltCommand(void);
void calculateTaskDuration();
time_t getTaskDuration();
};