File tree Expand file tree Collapse file tree 3 files changed +19
-19
lines changed Expand file tree Collapse file tree 3 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -437,29 +437,29 @@ export class CPMConnector extends TypedEmitter<Events> {
437437 const ifs : NetworkInfo [ ] = [ ] ;
438438
439439 for ( const [ ifname , ifdata ] of net ) {
440- const ipv4 = ifdata ?. find ( ( { family} ) => family === "IPv4" ) ;
441- const ipv6 = ifdata ?. find ( ( { family} ) => family === "IPv6" ) ;
440+ const ipv4 = ifdata ?. find ( ( { family } ) => family === "IPv4" ) ;
441+ const ipv6 = ifdata ?. find ( ( { family } ) => family === "IPv6" ) ;
442442
443443 if ( ! ipv4 ?. mac && ! ipv6 ?. mac ) continue ;
444444
445- const net : NetworkInfo = {
445+ const netInfo : NetworkInfo = {
446446 iface : ifname ,
447447 ifaceName : ifname ,
448448 mac : ( ipv4 ?. mac || ipv6 ?. mac ) as string ,
449449 dhcp : false
450450
451- }
451+ } ;
452452
453453 if ( ipv4 ?. address ) {
454- net . ip4 = ipv4 ?. address ;
455- net . ip4subnet = ipv4 ?. cidr as "string" ;
454+ netInfo . ip4 = ipv4 ?. address ;
455+ netInfo . ip4subnet = ipv4 ?. cidr as "string" ;
456456 }
457457 if ( ipv6 ?. address ) {
458- net . ip6 = ipv6 ?. address ;
459- net . ip6subnet = ipv6 ?. cidr as "string" ;
458+ netInfo . ip6 = ipv6 ?. address ;
459+ netInfo . ip6subnet = ipv6 ?. cidr as "string" ;
460460 }
461461
462- ifs . push ( net )
462+ ifs . push ( netInfo ) ;
463463 }
464464
465465 return ifs ;
Original file line number Diff line number Diff line change @@ -61,18 +61,18 @@ export class LoadCheck implements IComponent {
6161
6262 const [ usage , _fsSize ] = await Promise . all ( [
6363 mem . info ( ) ,
64- Promise . all ( this . config . fsPaths . map ( async ( path ) => ( { path, usage : await du ( path ) } ) ) )
64+ Promise . all ( this . config . fsPaths . map ( async ( path ) => ( { path, usage : await du ( path ) } ) ) )
6565 ] ) ;
6666
6767 const memFree = ( usage . totalMemMb - usage . usedMemMb ) * MEBIBYTE ;
6868 const memUsed = usage . usedMemMb * MEBIBYTE ;
6969
70- const fsSize = _fsSize . map ( ( { path, usage} ) => ( {
70+ const fsSize = _fsSize . map ( ( { path, usage : fsUsage } ) => ( {
7171 fs : path ,
72- available : usage . available - safeOperationsLimit ,
73- size : usage . total ,
74- used : usage . used ,
75- use : usage . used / usage . total
72+ available : fsUsage . available - safeOperationsLimit ,
73+ size : fsUsage . total ,
74+ used : fsUsage . used ,
75+ use : fsUsage . used / fsUsage . total
7676 } ) ) ;
7777
7878 return {
@@ -112,12 +112,12 @@ export class LoadCheck implements IComponent {
112112 * @returns {DataStream } Stream with load check data.
113113 */
114114 getLoadCheckStream ( ) : StringStream {
115- const ref = this ;
115+ const _this = this ;
116116
117117 return DataStream . from (
118118 async function * ( ) {
119119 while ( true ) {
120- yield ref . getLoadCheck ( ) ;
120+ yield _this . getLoadCheck ( ) ;
121121
122122 await defer ( 1000 ) ;
123123 }
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ const host = new HostClient("http://localhost:8000/api/v1");
99 const pkg = createReadStream ( resolve ( __dirname , "../../sth/packages/reference-apps/stdio-sequence.tar.gz" ) ) ;
1010
1111 const sequence = await host . sendSequence ( pkg ) ;
12- const instance = await sequence . start ( { } , [ ] ) ;
13- const instanceInfo = { id : instance . id , ...( await instance . getInfo ( ) ) . data } ;
12+ const instance = await sequence . start ( { appConfig : { } } ) ;
13+ const instanceInfo = { id : instance . id , ...await instance . getInfo ( ) } ;
1414
1515 // eslint-disable-next-line no-console
1616 console . error ( instanceInfo ) ;
You can’t perform that action at this time.
0 commit comments