ruby: gigasecond: little refactoring