mirror of
https://forge.murkfall.net/bluesaxman/squeegy.git
synced 2026-03-13 11:24:20 -06:00
Corrected seek issue
This commit is contained in:
1
wipe.pl
1
wipe.pl
@@ -147,6 +147,7 @@ sub wipethemdrives {
|
|||||||
open(my $longdiskw, ">:raw", $disks->{$diskid}{path}) or return warning("could not open $disks->{$diskid}{path}");
|
open(my $longdiskw, ">:raw", $disks->{$diskid}{path}) or return warning("could not open $disks->{$diskid}{path}");
|
||||||
seek($longdiskw,0,2);
|
seek($longdiskw,0,2);
|
||||||
my $totalBytes = tell($longdiskw);
|
my $totalBytes = tell($longdiskw);
|
||||||
|
seek($longdiskw,0,0);
|
||||||
until (eof $longdiskw) {
|
until (eof $longdiskw) {
|
||||||
print $longdiskw "\0";
|
print $longdiskw "\0";
|
||||||
printf(" %5.5s%%\r\r\r\r\r\r\r", sprintf("%.2f", (tell($longdiskw)/$totalBytes)) );
|
printf(" %5.5s%%\r\r\r\r\r\r\r", sprintf("%.2f", (tell($longdiskw)/$totalBytes)) );
|
||||||
|
|||||||
Reference in New Issue
Block a user