Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
Powerlinux protect against empty SN
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhemmarchand committed Mar 25, 2017
1 parent 2e735f8 commit a9cb6d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/nmon2csv.pl
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@
# - 02/13/2017: V1.1.29: Guilhem Marchand: inconsistent header is retrograded to WARN log level
# - 03/19/2017: V1.1.30: Guilhem Marchand: load list of nmon sections to be proceeded within external json config file
# - 03/24/2017: V1.1.31: Guilhem Marchand: PowerLinux ID correction, HOSTNAME and SN have been inversed in CONFIG header
# - 03/25/2017: V1.1.32: Guilhem Marchand: PowerLinux ID correction, prevent empty serial number

$version = "1.2.31";
$version = "1.2.32";

use Time::Local;
use Time::HiRes;
Expand Down Expand Up @@ -3383,6 +3384,9 @@ sub get_nmon_data {
if ( $SN eq "-1" ) {
$SN = $HOSTNAME;
}
elsif ( $SN eq "" ) {
$SN = $HOSTNAME;
}

$TYPE = &get_setting( "^BBBP.*Type", 3, "," );
if ( $TYPE =~ /Shared/ ) { $TYPE = "SPLPAR"; }
Expand Down
2 changes: 1 addition & 1 deletion default/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ label = TA-nmon
[launcher]
author = Guilhem Marchand
description = Technical Addon for Nmon Performance Monitor
version = 1.3.01
version = 1.3.02

0 comments on commit a9cb6d7

Please sign in to comment.