Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit e58485b531813bc80b62b7462d2875fd40681e29

Make diagnostics page more useful in SL environment
  
114114 end
115115
116116 def web_interface_reachable?
117 `curl --silent localhost:80 | grep Gitorious | wc -l`.to_i > 0
117 `curl --silent #{GitoriousConfig['gitorious_host']}:80 | grep Gitorious | wc -l`.to_i > 0
118118 end
119119
120120 def git_user_ok?
237237 free_numbers = `free -mt | tail -n 1`.chomp.split(" ")
238238 total = free_numbers[1].to_i
239239 free = free_numbers[3].to_i
240 percent_free = (free*100)/total
240 buffer_numbers = `free -mt | grep cache:`.chomp.split(" ")
241 buffer_free = buffer_numbers[3].to_i
242 percent_free = ((free + buffer_free)*100)/total
241243 return (percent_free > (100-MAX_HEALTHY_RAM_USAGE))
242244 end
243245