Display piece size in Web UI too

This commit is contained in:
Christophe Dumez 2010-12-21 17:56:25 +00:00
parent f5b3564392
commit fb81d1c8c9
2 changed files with 6 additions and 1 deletions

View file

@ -333,6 +333,8 @@ QVariantMap EventManager::getPropGeneralInfo(QString hash) const {
data["save_path"] = p;
// Creation date
data["creation_date"] = h.creation_date();
// Piece size
data["piece_size"] = misc::friendlyUnit(h.piece_length());
// Comment
data["comment"] = h.comment();
data["total_wasted"] = QVariant(misc::friendlyUnit(h.total_failed_bytes()+h.total_redundant_bytes()));