From 58651ac5e5713aba7370d47953dd4f4c8aa1f212 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 20 Sep 2014 03:25:17 +0000 Subject: [PATCH] bug fix --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index c5819d5..be1a8ac 100755 --- a/inxi +++ b/inxi @@ -7453,7 +7453,7 @@ get_optical_drive_data_bsd() aDisks[nr, "serial"] = $NF } if ( $NF ~ /[GM]B\/s/ ){ - speed=gensub(/^[0-9\.]+[[:space:]]*[GM]B\/s).*/,"\\1",1,$NF) + speed=gensub(/^([0-9\.]+[[:space:]]*[GM]B\/s).*/,"\\1",1,$NF) sub(/\.[0-9]+/,"",speed) if ( speed ~ /^[0-9]+/ ) { aDisks[nr, "speed"] = speed