Skip to content

Commit

Permalink
Fix prew commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jul 2, 2014
1 parent c1021a8 commit a1a80dc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/i-nex/.src/VCore.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
' Gambas module file

Public VCoreDirectiories As Collection
Public CoreVoltage As String
Public Visible As Boolean = False
Public Sub _init()
Dim i As Integer
VCoreDirectiories = [("0"): ("/sys/class/hwmon/hwmon0/device/in0_input"),
("1"): ("/sys/class/hwmon/hwmon1/device/in0_input")]

For i = 0 To VCoreDirectiories.Count
If Access(VCoreDirectiories[i], gb.Read) = True Then
Try CoreVoltage = Replace(File.Load(VCoreDirectiories[i]), "\n", "")
CoreVoltage = Left(CoreVoltage, +1) & "." & Right(CoreVoltage, +3) & " V"
Visible = True
Endif
Next
End

0 comments on commit a1a80dc

Please sign in to comment.