Skip to content

Commit f72e96c

Browse files
committed
dbhub: Fix wrong file size being shown for very large files
See issue #1113.
1 parent d939898 commit f72e96c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/RemoteModel.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ QVariant RemoteModel::data(const QModelIndex& index, int role) const
233233
return QVariant();
234234

235235
// Convert size to human readable format
236-
float size = item->value(RemoteModelColumnSize).toInt();
236+
float size = item->value(RemoteModelColumnSize).toLongLong();
237237
QStringList list;
238238
list << "KiB" << "MiB" << "GiB" << "TiB";
239239
QStringListIterator it(list);

0 commit comments

Comments
 (0)