Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- line="10 LPU 9% 10% 781MB/7799MB 14% 6644MB/7799MB/454MB"
- puts line
- first = line.split(" ")[2].strip.gsub("%","").to_f
- second = line.split(" ")[3].strip.gsub("%","").to_f
- third = line.split(" ")[5].strip.gsub("%","").to_f
- puts first
- puts second
- puts third
- =begin
- ---------------------
- locally
- 9.0
- 10.0
- 14.0
- ----------------------
- -----------------------
- from the app
- 0.0
- 9.0
- 781.0
- --------------
- =end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement