From 3d34de1311bbf0989935f4df5f7d390c019c8dbb Mon Sep 17 00:00:00 2001 From: localhorst Date: Mon, 21 Sep 2020 21:56:26 +0200 Subject: [PATCH] release of Beta 0.2.0 --- include/reHDD.h | 16 +++++++--------- src/reHDD.cpp | 10 ++++------ 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/include/reHDD.h b/include/reHDD.h index d5497e2..48c5733 100644 --- a/include/reHDD.h +++ b/include/reHDD.h @@ -1,6 +1,6 @@ /** * @file reHDD.h - * @brief represent + * @brief app logic header * @author hendrik schutter * @date 01.05.2020 */ @@ -8,13 +8,13 @@ #ifndef REHDD_H_ #define REHDD_H_ -#define REHDD_VERSION "bV0.1.1" +#define REHDD_VERSION "bV0.2.0" // Drive handling Settings #define WORSE_HOURS 19200 //mark drive if at this limit or beyond #define WORSE_POWERUP 10000 //mark drive if at this limit or beyond #define SHRED_ITERATIONS 3 -#define FROZEN_TIMEOUT 5 //After this timeout (minutes) the drive will be marked as frozen +#define FROZEN_TIMEOUT 10 //After this timeout (minutes) the drive will be marked as frozen // Logger Settings #define LOG_PATH "./reHDD.log" @@ -23,16 +23,15 @@ #define SOFTWARE_VERSION "alpha" #define HARDWARE_VERSION "generic" -// Logic -//#define DRYRUN //don´t touch the drives -#define FROZEN_ALERT //show alert if drive is frozen - - #define LOG_LEVEL_HIGH //log everything, like drive scann thread #ifndef LOG_LEVEL_HIGH #define LOG_LEVEL_LOW //log only user actions and tasks #endif +// Logic +//#define DRYRUN //don´t touch the drives +#define FROZEN_ALERT //show alert if drive is frozen + //IPC pipes #define READ 0 #define WRITE 1 @@ -98,5 +97,4 @@ private: static Drive* getSelectedDrive(); }; - #endif // REHDD_H_ diff --git a/src/reHDD.cpp b/src/reHDD.cpp index 803a5e5..32c5b7d 100644 --- a/src/reHDD.cpp +++ b/src/reHDD.cpp @@ -75,9 +75,7 @@ void reHDD::app_logic(void) Logger::logThis()->info("got progress signal from a shred task"); #endif } - //mxScannDrives.lock(); ui->updateTUI(&listDrives, u8SelectedEntry); - //mxScannDrives.unlock(); } //endless loop thDevices.join(); thUserInput.join(); @@ -286,7 +284,7 @@ void reHDD::filterNewDrives(list * plistOldDrives, list * plistNew /** * \brief search attached drives on /dev/sd* - * \param pointer of vector * pvecDrives + * \param pointer of list * plistDrives * \return void */ void reHDD::searchDrives(list * plistDrives) @@ -319,7 +317,7 @@ void reHDD::searchDrives(list * plistDrives) /** * \brief filter out drives that are listed in "ignoreDrives.conf" - * \param pointer of vector * pvecDrives + * \param pointer of list * plistDrives * \return void */ void reHDD::filterIgnoredDrives(list * plistDrives) @@ -404,7 +402,7 @@ void reHDD::filterIgnoredDrives(list * plistDrives) /** * \brief print drives with all information - * \param pointer of vector * pvecDrives + * \param pointer of list * plistDrives * \return void */ void reHDD::printDrives(list * plistDrives) @@ -439,7 +437,7 @@ void reHDD::printDrives(list * plistDrives) /** * \brief add S.M.A.R.T data from SMART - * \param pointer of vector * pvecDrives + * \param pointer of list * plistDrives * \return void */ void reHDD::addSMARTData(list * plistDrives)