(String time)
| 94 | } |
| 95 | |
| 96 | private String pingToString(String time) { |
| 97 | String timePing=Long.toString((Time.utcTimeMillis()-Long.parseLong(time))/10); |
| 98 | int dotpos=timePing.length()-2; |
| 99 | String first = (dotpos==0)? "0":timePing.substring(0, dotpos); |
| 100 | String second = timePing.substring(dotpos); |
| 101 | |
| 102 | StringBuffer s=new StringBuffer(first) |
| 103 | .append('.') |
| 104 | .append(second) |
| 105 | .append(' ') |
| 106 | .append(Time.goodWordForm (Integer.parseInt(second), 0)); |
| 107 | |
| 108 | return s.toString(); |
| 109 | } |
| 110 | } |
no test coverage detected