Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
Update nco.php
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRow committed Apr 19, 2020
1 parent b54579e commit 642fae8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nco/nco.php
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,12 @@ function ncmCall( &$ssh, string $ncm_path, string $command, array $arguments, st

$ncmCall = ncmCall( $ssh, $node_data['ncm_path'], 'representatives_online', [], $ncm_flags, $ncm_callerID );

if( $ncmCall['count'] == null ) $ncmCall['count'] = 0;

if( $ncmCall['weight'] == null ) $ncmCall['weight'] = 0;

if( $ncmCall['weight_percent'] == null ) $ncmCall['weight_percent'] = 0;

$table_data[$tag]['network_representatives_online'] = custom_number( $ncmCall['count'] );

$table_data[$tag]['network_weight_online'] = custom_number( NanoTools::raw2den( $ncmCall['weight'], $C['nano']['denomination'] ), $C['nano']['decimals'] );
Expand Down

0 comments on commit 642fae8

Please sign in to comment.