changed capacity to uint64
This commit is contained in:
@ -28,9 +28,9 @@ string Drive::getSerial(void)
|
||||
return sSerial;
|
||||
}
|
||||
|
||||
string Drive::getCapacity(void)
|
||||
uint64_t Drive::getCapacity(void)
|
||||
{
|
||||
return sCapacity;
|
||||
return u64Capacity;
|
||||
}
|
||||
|
||||
uint32_t Drive::getErrorCount(void)
|
||||
@ -42,24 +42,24 @@ uint32_t Drive::getPowerOnHours(void)
|
||||
return u32PowerOnHours;
|
||||
}
|
||||
|
||||
uint32_t Drive::getSpinUpCount(void)
|
||||
uint32_t Drive::getPowerCycles(void)
|
||||
{
|
||||
return u32SpinUpCount;
|
||||
return u32PowerCycles;
|
||||
}
|
||||
|
||||
void Drive::setDriveSMARTData( string modelFamily,
|
||||
string modelName,
|
||||
string serial,
|
||||
string capacity,
|
||||
uint64_t capacity,
|
||||
uint32_t errorCount,
|
||||
uint32_t powerOnHours,
|
||||
uint32_t spinUpCount)
|
||||
uint32_t powerCycle)
|
||||
{
|
||||
sModelFamily = modelFamily;
|
||||
sModelName = modelName;
|
||||
sSerial = serial;
|
||||
sCapacity = capacity;
|
||||
u64Capacity = capacity;
|
||||
u32ErrorCount = errorCount;
|
||||
u32PowerOnHours = powerOnHours;
|
||||
u32SpinUpCount = spinUpCount;
|
||||
u32PowerCycles = powerCycle;
|
||||
}
|
Reference in New Issue
Block a user