Skip to content

Commit cbd80a9

Browse files
Merge pull request #70 from joular/develop
1.0.5
2 parents 4a791cd + 8fe9116 commit cbd80a9

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

alire.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "powerjoular"
22
description = "Monitoring the power consumption of multiple platforms and processes"
3-
version = "1.0.4"
3+
version = "1.0.5"
44

55
authors = ["Adel Noureddine"]
66
maintainers = ["Adel Noureddine <[email protected]>"]

installer/aur/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maintainer: Adel Noureddine <[email protected]>
22
pkgname=powerjoular
3-
pkgver=1.0.4
3+
pkgver=1.0.5
44
pkgrel=1
55
pkgdesc="PowerJoular allows monitoring power consumption of multiple platforms and processes."
66
arch=('x86_64' 'aarch64' 'armv7h')

installer/powerjoular.spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: powerjoular
2-
Version: 1.0.4
2+
Version: 1.0.5
33
Release: 1%{?dist}
44
Summary: PowerJoular allows monitoring power consumption of multiple platforms and processes.
55

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

2424
%changelog
25+
* Tue Nov 19 2024 Adel Noureddine <[email protected]> - 1.0.5-1
26+
- Hotfix: don't exit when DRAM energy can't be read
2527
* Wed Jul 11 2024 Adel Noureddine <[email protected]> - 1.0.4-1
2628
- Hotfix for error in updating PID list for monitoring an application by name
2729
* Thu Jul 08 2024 Adel Noureddine <[email protected]> - 1.0.3-1

release-version.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
VERSION=1.0.4
3+
VERSION=1.0.5
44

55
# First cross compiler
66

src/cpu_stat_app.adb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ package body CPU_STAT_App is
7474
Seps : constant String := " "; -- Seperator (space) for slicing string
7575
Slice_number_count : String_Split.Slice_Number;
7676
Loop_I : Integer;
77-
Test : Integer;
7877
begin
7978
Args := Argument_String_To_List (Command);
8079
declare

src/help_info.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
1414

1515
package body Help_Info is
1616

17-
Version_Number : constant String := "1.0.4";
17+
Version_Number : constant String := "1.0.5";
1818

1919
procedure Show_Help is
2020
begin

src/intel_rapl_sysfs.adb

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,18 @@ package body Intel_RAPL_sysfs is
3636

3737
-- For pkg, also check dram because total energy = pkg + dram
3838
if RAPL_Data.dram_supported then
39-
-- Read energy_uj which is in micro joules
40-
Open (F_Name, In_File, Folder_Name & "intel-rapl:0/intel-rapl:0:2/energy_uj");
41-
-- Store energy value divided by 1000000 to get it in joules
42-
RAPL_Data.dram := Long_Float'Value (Get_Line (F_Name)) / 1000000.0;
43-
Close (F_Name);
44-
RAPL_Data.total_energy := RAPL_Data.pkg + RAPL_Data.dram;
39+
begin
40+
-- Read energy_uj which is in micro joules
41+
Open (F_Name, In_File, Folder_Name & "intel-rapl:0/intel-rapl:0:2/energy_uj");
42+
-- Store energy value divided by 1000000 to get it in joules
43+
RAPL_Data.dram := Long_Float'Value (Get_Line (F_Name)) / 1000000.0;
44+
Close (F_Name);
45+
RAPL_Data.total_energy := RAPL_Data.pkg + RAPL_Data.dram;
46+
exception
47+
when others =>
48+
-- Don't exit because we can continue without dram
49+
null;
50+
end;
4551
end if;
4652
else
4753
return;

0 commit comments

Comments
 (0)