1
Fork 0

added function to calculate drive ID (from hash)

This commit is contained in:
Jake Howard 2014-12-04 12:35:48 +00:00
parent b891ced629
commit 17469c6134

View file

@ -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)); ;
}
}
}