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

Commit

Permalink
nmon2csv,pl var data func. regex correction to prevent inconsistent data
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhemmarchand committed Mar 26, 2017
1 parent 236a1d8 commit 4aa52ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bin/nmon2csv.pl
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@
# - 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
# - 03/25/2017: V1.1.33: Guilhem Marchand: variable data function regex correction to prevent inconsistent data

$version = "1.2.32";
$version = "1.2.33";

use Time::Local;
use Time::HiRes;
Expand Down Expand Up @@ -2698,7 +2699,7 @@ sub variable_sections_insert {

}

@rawdata = grep( /^$nmon_var,/, @nmon );
@rawdata = grep( /^$nmon_var,T[0-9]*,/, @nmon );

if ( @rawdata < 1 ) { return (1); }
else {
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.03
version = 1.3.04

0 comments on commit 4aa52ac

Please sign in to comment.