Skip to content

Commit

Permalink
Fix uptime
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jan 28, 2012
1 parent 93373cc commit e2ea8e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Binary file modified src/i-nex/.gambas/FINFOSYS
Binary file not shown.
5 changes: 2 additions & 3 deletions src/i-nex/.src/Finfosys.class
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ Public Sub Button1_Click()
End

Public Sub dospam_uptime()
Dim uptime, total, used, freee, shared, buffers, cached, usedonthistime, swaptotal As String
Dim total, used, freee, shared, buffers, cached, usedonthistime, swaptotal As String
Dim dospam, totpam, totalswap, usedswap As Integer
Dim dospam1, totpam1, totalswap1, usedswap1 As String
Shell "free -m | grep 'Mem' | awk {'print $2'}" Wait To total
Expand Down Expand Up @@ -391,8 +391,7 @@ Public Sub dospam_uptime()
TextArea45.Text = swaptotal & "MB"
TextArea45.Text = Replace(TextArea45.Text, "\n", "")
TextLabel24.Text = usedswap / 1000
Exec ["uptime"] Wait To uptime
TextArea37.Text = uptime
Exec ["uptime"] Wait To TextArea37.Text
TextArea37.Text = Replace(TextArea37.Text, "\n", "")
dospam1 = Replace(dospam1, "\n", "")
dospam1 = Replace(dospam1, " ", "")
Expand Down

0 comments on commit e2ea8e0

Please sign in to comment.