Skip to content

Commit

Permalink
Fix HT detect
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jan 4, 2013
1 parent c4a70a2 commit d984f33
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/i-nex/.settings
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ File[9]=".src/ScreenShot.class:12.65"
File[10]=".src/ScreenShotM.module:7.0"
File[11]=".src/USB_Drives.module:13.0"
File[12]=".src/Asound_Drives.module:33.27"
Active=13
File[13]=".src/Reportm.module:4.15"
File[14]=".src/FReport_Gen.form"
File[15]=".src/FReport_Gen.class:28.0"
Expand All @@ -47,10 +46,11 @@ File[22]=".src/FModules.class:4.30"
File[23]=".src/Input_Devices.module:8.1"
File[24]=".src/FinfosysNew.form"
File[25]=".src/FinfosysNew.class:37.30"
File[26]=".src/net.module:103.20"
File[26]=".src/net.module:107.52"
File[27]="Data/report-ng.sh:27.44"
File[28]=".src/Distribution_Detect.module:20.0"
File[29]=".src/FFlags.module:65.30"
Active=29
File[29]=".src/FFlags.module:62.3"
Count=29

[Watches]
Expand Down
4 changes: 2 additions & 2 deletions src/i-nex/.src/FFlags.module
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ End

Public Sub ht()
Dim NUMLOG, NUMPHY As String
Shell "grep 'physical id' /proc/cpuinfo | sort -u | wc -l" Wait To NUMPHY
Shell "grep 'processor' /proc/cpuinfo | wc -l" Wait To NUMLOG
Shell "grep 'processor' /proc/cpuinfo | wc -l" Wait To NUMPHY
Shell "grep 'cpu cores' /proc/cpuinfo | sed -n '1p' | cut -d ':' -f 2" Wait To NUMLOG
NUMLOG = CFloat(Val(Replace(Replace(NUMLOG, " ", ""), "\n", "")))
NUMPHY = CFloat(Val(Replace(Replace(NUMPHY, " ", ""), "\n", "")))
If NUMPHY = NUMLOG Then
Expand Down
6 changes: 3 additions & 3 deletions src/i-nex/.src/net.module
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ Public Sub net_dev()
Dim total_interfaces As String
Dim Face, Face2 As String
Dim Maximum, i, ty, i2, ty2 As Integer
Shell "ls /sys/class/net | tr ' ' '\n' | wc -l" Wait To total_interfaces
Shell "ls /sys/class/net | tr ' ' '\n' | wc -l" To total_interfaces
Finfosys.GridView1.Columns.Count = 9
Finfosys.GridView1.Rows.Count = CFloat(Val(total_interfaces)) + 1
Finfosys.GridView2.Columns.Count = 9
Finfosys.GridView2.Rows.Count = CFloat(Val(total_interfaces)) + 1
Maximum = CInteger(Val(total_interfaces)) + 2
For i = 3 To Maximum
Shell "cat /proc/net/dev | awk {'print $1'} | sed -n '" & i & "p'" Wait To Face
Shell "cat /proc/net/dev | awk {'print $1'} | sed -n '" & i & "p'" To Face
Finfosys.GridView1[i - 2, 0].Text = Replace(Face, "\n", "")
For ty = 1 To 9
Shell "cat /proc/net/dev | awk {'print $" & ty & "'} | sed -n '" & i & "p'" Wait To Face
Shell "cat /proc/net/dev | awk {'print $" & ty & "'} | sed -n '" & i & "p'" To Face
Finfosys.GridView1[i - 2, ty - 1].Text = Replace(Face, "\n", "")
Next
Next
Expand Down

0 comments on commit d984f33

Please sign in to comment.