pond: Show block timestamp deltas

This commit is contained in:
Łukasz Magiera 2019-10-03 20:07:16 +02:00
parent 77835636b0
commit a847a460a6

View File

@ -123,9 +123,13 @@ class ChainExplorer extends React.Component {
if(msgc > 0) { if(msgc > 0) {
msgc = <b>{msgc}</b> msgc = <b>{msgc}</b>
} }
let time = '?'
if(this.state.cache[row - 1]){
time = <span>{ts.Blocks[0].Timestamp - this.state.cache[row - 1].Blocks[0].Timestamp}s</span>
}
info = <span> info = <span>
<BlockLinks cids={ts.Cids} blocks={ts.Blocks} conn={this.props.client} mountWindow={this.props.mountWindow} /> Msgs: {msgc} <BlockLinks cids={ts.Cids} blocks={ts.Blocks} conn={this.props.client} mountWindow={this.props.mountWindow} /> Msgs: {msgc} ΔT:{time}
</span> </span>
} }