Show CPU and memory use, disable last block time for now (#40)

This commit is contained in:
Maciej Hirsz
2018-09-18 14:37:09 +02:00
committed by GitHub
parent 762db7ebdc
commit 07b5880e5f
7 changed files with 27 additions and 11 deletions
+1 -1
View File
@@ -8,4 +8,4 @@ import * as FeedMessage from './feed';
export { Types, FeedMessage };
// Increment this if breaking changes were made to types in `feed.ts`
export const VERSION: Types.FeedVersion = 10 as Types.FeedVersion;
export const VERSION: Types.FeedVersion = 11 as Types.FeedVersion;
+3 -1
View File
@@ -20,8 +20,10 @@ export type TransactionCount = Opaque<number, 'TransactionCount'>;
export type Latitude = Opaque<number, 'Latitude'>;
export type Longitude = Opaque<number, 'Longitude'>;
export type City = Opaque<string, 'City'>;
export type MemoryUse = Opaque<number, 'MemoryUse'>;
export type CPUUse = Opaque<number, 'CPUUse'>;
export type BlockDetails = [BlockNumber, BlockHash, Milliseconds, Timestamp, Maybe<PropagationTime>];
export type NodeDetails = [NodeName, NodeImplementation, NodeVersion, Maybe<Address>];
export type NodeStats = [PeerCount, TransactionCount];
export type NodeStats = [PeerCount, TransactionCount, Maybe<MemoryUse>, Maybe<CPUUse>];
export type NodeLocation = [Latitude, Longitude, City];