unix.linux.proc: Pad tail with f for cpu-info. Fixes #877.

db4
Doug Coleman 2013-04-30 16:47:09 -07:00
parent 9e14cee4cf
commit 65a7175cb6
1 changed files with 2 additions and 0 deletions

View File

@ -44,8 +44,10 @@ TUPLE: processor-info
{ address-sizes array } { address-sizes array }
{ power-management string } ; { power-management string } ;
! Linux 2.6 has fewer values than new kernels
: lines>processor-info ( strings -- processor-info ) : lines>processor-info ( strings -- processor-info )
[ ":" split second [ CHAR: \s = ] trim ] map [ ":" split second [ CHAR: \s = ] trim ] map
25 f pad-tail
[ [
{ {
[ string>number ] [ string>number ]