Skip to content

Commit

Permalink
Merge pull request #62 from joular/develop
Browse files Browse the repository at this point in the history
1.0.4
  • Loading branch information
adelnoureddine authored Jul 11, 2024
2 parents 9a5a006 + a5d3337 commit 4a791cd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion alire.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "powerjoular"
description = "Monitoring the power consumption of multiple platforms and processes"
version = "1.0.3"
version = "1.0.4"

authors = ["Adel Noureddine"]
maintainers = ["Adel Noureddine <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion installer/aur/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: Adel Noureddine <[email protected]>
pkgname=powerjoular
pkgver=1.0.3
pkgver=1.0.4
pkgrel=1
pkgdesc="PowerJoular allows monitoring power consumption of multiple platforms and processes."
arch=('x86_64' 'aarch64' 'armv7h')
Expand Down
4 changes: 3 additions & 1 deletion installer/powerjoular.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: powerjoular
Version: 1.0.3
Version: 1.0.4
Release: 1%{?dist}
Summary: PowerJoular allows monitoring power consumption of multiple platforms and processes.

Expand All @@ -22,6 +22,8 @@ install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/systemd/system/%{name}.
%{_sysconfdir}/systemd/system/%{name}.service

%changelog
* Wed Jul 11 2024 Adel Noureddine <[email protected]> - 1.0.4-1
- Hotfix for error in updating PID list for monitoring an application by name
* Thu Jul 08 2024 Adel Noureddine <[email protected]> - 1.0.3-1
- Hotfix for handle exceptions for invalid command line arguments
* Thu Jul 08 2024 Adel Noureddine <[email protected]> - 1.0.2-1
Expand Down
2 changes: 1 addition & 1 deletion release-version.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION=1.0.3
VERSION=1.0.4

# First cross compiler

Expand Down
5 changes: 3 additions & 2 deletions src/cpu_stat_app.adb
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ package body CPU_STAT_App is
Command : String := "pidof " & To_String (App_Data.App_Name);
Args : Argument_List_Access;
Status : aliased Integer;
Subs : String_Split.Slice_Set; -- Used to slice the read data from stat file
Subs : String_Split.Slice_Set; -- Used to slice the read data from PID list
Seps : constant String := " "; -- Seperator (space) for slicing string
Slice_number_count : String_Split.Slice_Number;
Loop_I : Integer;
Test : Integer;
begin
Args := Argument_String_To_List (Command);
declare
Expand All @@ -94,7 +95,7 @@ package body CPU_STAT_App is

for I in 1 .. Slice_number_count loop
Loop_I := Integer'Value (String_Split.Slice_Number'Image (I));
App_Data.PID_Array(Loop_I) := Integer'Value (String_Split.Slice (Subs, 1));
App_Data.PID_Array(Loop_I) := Integer'Value (String_Split.Slice (Subs, I));
end loop;
end;
exception
Expand Down
2 changes: 1 addition & 1 deletion src/help_info.adb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;

package body Help_Info is

Version_Number : constant String := "1.0.3";
Version_Number : constant String := "1.0.4";

procedure Show_Help is
begin
Expand Down

0 comments on commit 4a791cd

Please sign in to comment.