Skip to content

Commit

Permalink
Merge pull request #20 from christiam/fix-mem-collection-unit
Browse files Browse the repository at this point in the history
Fix units in memory collection
  • Loading branch information
christiam authored Feb 26, 2021
2 parents e2af65d + ca376b5 commit 8342e08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/driver.pl
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ sub configure_unsetting_environment
sub collect_mem_info
{
# The percentage memory computed in this function is equivalent to the command:
# free -b | awk 'BEGIN{t=a=0} /^Mem/ {t=$2;a=$7;} END{print (100-((a*100)/(t*1.)))}'
open(my $free_output, '-|', 'free -b');
# free -k | awk 'BEGIN{t=a=0} /^Mem/ {t=$2;a=$7;} END{print (100-((a*100)/(t*1.)))}'
open(my $free_output, '-|', 'free -k');
my $total_memory = 0;
my $free_memory = 0;
my $used_memory = 0;
Expand Down
4 changes: 2 additions & 2 deletions version.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
use strict;
use warnings;
our $VERSION = '1.2.0';
our $VERSION = '1.2.1';
# Must be a single integer, stored in https://www.sqlite.org/pragma.html#pragma_user_version
our $DB_VERSION = 3;
our $DB_VERSION = 4;

0 comments on commit 8342e08

Please sign in to comment.