Skip to content

Commit

Permalink
shows the number of block produced in the last 24h: by techy2
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-at-decenomy committed Jan 25, 2025
1 parent 55c466d commit 883f785
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1162,10 +1162,10 @@ void RPCConsole::setmymasternodes()
ui->myactivemn->setText(QString::number(nMNCount));
}

void RPCConsole::setbstamp()
void RPCConsole::setbstamp(CBlockchainStatus& cbs)
{
QDateTime timestamp = QDateTime::currentDateTime();
QString timestring = timestamp.toString();
QString timestring = timestamp.toString() + " : " + QString::number(cbs.nBlocksPerDay) + " blks/day";
ui->bststamp->setText(timestring);
}

Expand Down Expand Up @@ -1195,5 +1195,5 @@ void RPCConsole::updateBlockchainStats()
setchainmasternodes(cbs);
setmymasternodes();
applyColor2Text(ui->bststamp, Qt::black);
setbstamp();
setbstamp(cbs);
}
2 changes: 1 addition & 1 deletion src/qt/rpcconsole.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public Q_SLOTS:
/** show my masternode status */
void setmymasternodes();
/** show the timestamp when the status snapshot was taken */
void setbstamp();
void setbstamp(CBlockchainStatus& cbs);

enum ColumnWidths {
ADDRESS_COLUMN_WIDTH = 170,
Expand Down

0 comments on commit 883f785

Please sign in to comment.