diff options
-rwxr-xr-x | client/engine/Disk.lib | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/engine/Disk.lib b/client/engine/Disk.lib index aa3f57f9..701a3c81 100755 --- a/client/engine/Disk.lib +++ b/client/engine/Disk.lib @@ -655,7 +655,7 @@ fi case $# in 1) # Para un disco. DISK=$(ogDiskToDev $1) || return $? - LASTSECTOR=$(hdparm -N $DISK | awk -F"[=/]" '/=/ {print $2}') + LASTSECTOR=$[$(hdparm -N $DISK | awk -F"[=/]" '/=/ {print $2}') - 1] ;; 2) # Para una particiĆ³n. PART=$(ogDiskToDev $1 $2) || return $? |