summaryrefslogtreecommitdiffstats
path: root/client/engine/Disk.lib
diff options
context:
space:
mode:
Diffstat (limited to 'client/engine/Disk.lib')
-rwxr-xr-xclient/engine/Disk.lib2
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 $?