percent are now two digit precision
This commit is contained in:
@ -34,7 +34,7 @@ private:
|
||||
uint32_t u32PowerOnHours = 0U; //in hours
|
||||
uint32_t u32PowerCycles = 0U;
|
||||
|
||||
uint8_t u8TaskPercentage = 0U; //in percent for Shred (1 to 100)
|
||||
double d32TaskPercentage = 0U; //in percent for Shred (1 to 100)
|
||||
|
||||
protected:
|
||||
|
||||
@ -66,8 +66,8 @@ public:
|
||||
string sPowerOnHoursToText();
|
||||
string sPowerCyclesToText();
|
||||
|
||||
void setTaskPercentage(uint8_t u8TaskPercentage);
|
||||
uint8_t getTaskPercentage(void);
|
||||
void setTaskPercentage(double d32TaskPercentage);
|
||||
double getTaskPercentage(void);
|
||||
|
||||
};
|
||||
|
||||
|
@ -8,17 +8,13 @@
|
||||
#ifndef REHDD_H_
|
||||
#define REHDD_H_
|
||||
|
||||
#define DRYRUN
|
||||
//#define DRYRUN
|
||||
|
||||
#define WORSE_HOURS 19200 //mark drive if at this limit or beyond
|
||||
#define WORSE_POWERUP 4000 //mark drive if at this limit or beyond
|
||||
|
||||
#define SHRED_ITERATIONS 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define READ 0
|
||||
#define WRITE 1
|
||||
|
||||
|
@ -80,7 +80,7 @@ public:
|
||||
|
||||
private:
|
||||
Shred(void);
|
||||
static inline uint8_t calcProgress();
|
||||
static inline double calcProgress();
|
||||
static inline void tfnge_init_iv(struct tfnge_stream *tfe, const void *key, const void *iv);
|
||||
static inline void tfnge_init(struct tfnge_stream *tfe, const void *key);
|
||||
static inline void tfng_encrypt_rawblk(TFNG_UNIT_TYPE *O, const TFNG_UNIT_TYPE *I, const TFNG_UNIT_TYPE *K);
|
||||
|
Reference in New Issue
Block a user