dbug: return scry component

WIP this adds the minimal things we have in the scry-state of a peer.
Will revisit later on to present (more) information in a different way
This commit is contained in:
yosoyubik 2023-03-30 14:21:05 +02:00
parent ece5393829
commit 80f01d06c5
2 changed files with 6 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -259,20 +259,20 @@ export class Ames extends Component {
);
const summary = (<>
{/* <b>snd</b><br/> */}
{/* {renderDuct(snd.duct)} */}
<b>{scry['scry-path']}</b><br/>
{renderDuct(scry['keen-state'].listeners)}
<table><tbody>
<tr class="inter">
<td>id</td>
<td>num-fragments</td>
<td>num-received</td>
<td>next-wake</td>
<td>listeners</td>
</tr>
<tr>
<td>{scry['keen-id']}</td>
<td>{scry['keen-state']['num-fragments']}</td>
<td>{scry['keen-state']['num-received']}</td>
<td>{msToDa(scry['keen-state']['next-wake'])}</td>
<td>renderDuct(scry['keen-state'].listeners)</td>
</tr>
</tbody></table>
</>);
@ -381,6 +381,7 @@ export class Ames extends Component {
{backward}
{nax}
{heeds}
{scry}
</>);
} else {
console.log('weird peer', peer);