added function to calculate drive ID (from hash)
This commit is contained in:
parent
b891ced629
commit
17469c6134
1 changed files with 4 additions and 0 deletions
|
@ -105,5 +105,9 @@ namespace Saviour_Backup_System
|
|||
double answer = (10000 - ((free / capacity) * 10000));
|
||||
return (int)answer;
|
||||
}
|
||||
|
||||
public static string calculateDriveID(DriveInfo drive) {
|
||||
return tools.hash(drive.VolumeLabel + drive.TotalSize + drive.DriveFormat + USBTools.getDriveType(drive)); ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue