Skip to content

Commit

Permalink
Fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jan 5, 2014
1 parent ede92a1 commit a8ca993
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/i-nex/.src/FEDID.class
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
' Gambas class file


Public Logs As New Logger
Public Sub Form_Open()
Me.Center
Me.X = Settings["Window/X", Me.X]
Me.Y = Settings["Window/Y", Me.Y]
Logs("Execute edid", Logger.Info)
Exec ["/bin/bash", "" & User.Home & "/.i-nex/edid"] Wait
Wait 1
Logs("Load " & User.Home & "/.i-nex/edid.conf", Logger.Info)
TextArea1.Text = File.Load("" & User.Home & "/.i-nex/edid.conf")

End
Expand Down
2 changes: 2 additions & 0 deletions src/i-nex/.src/MInit.module
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Public Sub _inits()
Copy "Data/edid" To User.Home &/ ".i-nex/edid"
Logs("Execute copied files", Logger.Info)

Logs("Execute screenfetch-dev", Logger.Info)
Exec ["/bin/bash", "" & User.Home & "/.i-nex/screenfetch-dev"] Wait
Logs("Execute report-ng.sh", Logger.Info)
Exec ["/bin/bash", "" & User.Home & "/.i-nex/report-ng.sh"] Wait
End
3 changes: 2 additions & 1 deletion src/i-nex/.src/thermal_zone.module
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
' Gambas module file

Public Logs As New Logger
Public temp_acpi As Boolean = Exist("/sys/bus/acpi/devices/LNXTHERM:00/thermal_zone/temp")
Public temp_acpi_thm As Boolean = Exist("/proc/acpi/thermal_zone/THM0/temperature")
Public temp_hwmon As Boolean = Exist("/sys/class/hwmon/hwmon0/device/temp2_input")
Expand Down Expand Up @@ -41,7 +42,7 @@ Public Sub _inits()
Endif

If Temperature = Null Then
Debug "Not found temp"
Logs("Not found temp", Logger.Error)
Else
calculate = CFloat(Val(Temperature))
Endif
Expand Down

0 comments on commit a8ca993

Please sign in to comment.