Restore value change committed by mistake

This commit is contained in:
Luis Ángel San Martín 2023-08-20 17:28:27 +02:00
parent 3cd83eb31b
commit a6696f35b2

View File

@ -301,7 +301,7 @@ QString pseudoHash(const QFileInfo &fileInfo)
QCryptographicHash crypto(QCryptographicHash::Sha1); QCryptographicHash crypto(QCryptographicHash::Sha1);
QFile file(fileInfo.absoluteFilePath()); QFile file(fileInfo.absoluteFilePath());
file.open(QFile::ReadOnly); file.open(QFile::ReadOnly);
crypto.addData(file.read(52428)); crypto.addData(file.read(524288));
file.close(); file.close();
// hash Sha1 del primer 0.5MB + filesize // hash Sha1 del primer 0.5MB + filesize
return QString(crypto.result().toHex().constData()) + QString::number(fileInfo.size()); return QString(crypto.result().toHex().constData()) + QString::number(fileInfo.size());