|
|
@ -682,7 +682,7 @@ void BitcoinGUI::setNumBlocks(int count) |
|
|
|
|
|
|
|
|
|
|
|
QDateTime lastBlockDate = clientModel->getLastBlockDate(); |
|
|
|
QDateTime lastBlockDate = clientModel->getLastBlockDate(); |
|
|
|
QDateTime currentDate = QDateTime::currentDateTime(); |
|
|
|
QDateTime currentDate = QDateTime::currentDateTime(); |
|
|
|
int secs = lastBlockDate.secsTo(currentDate); |
|
|
|
qint64 secs = lastBlockDate.secsTo(currentDate); |
|
|
|
|
|
|
|
|
|
|
|
tooltip = tr("Processed %n blocks of transaction history.", "", count); |
|
|
|
tooltip = tr("Processed %n blocks of transaction history.", "", count); |
|
|
|
|
|
|
|
|
|
|
@ -722,8 +722,8 @@ void BitcoinGUI::setNumBlocks(int count) |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
int years = secs / YEAR_IN_SECONDS; |
|
|
|
qint64 years = secs / YEAR_IN_SECONDS; |
|
|
|
int remainder = secs % YEAR_IN_SECONDS; |
|
|
|
qint64 remainder = secs % YEAR_IN_SECONDS; |
|
|
|
timeBehindText = tr("%1 and %2").arg(tr("%n year(s)", "", years)).arg(tr("%n week(s)","", remainder/WEEK_IN_SECONDS)); |
|
|
|
timeBehindText = tr("%1 and %2").arg(tr("%n year(s)", "", years)).arg(tr("%n week(s)","", remainder/WEEK_IN_SECONDS)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|