From 3d4ee4ecf2216c9596dd43826e6bd4e8f82815b5 Mon Sep 17 00:00:00 2001 From: jonnosan Date: Fri, 27 Mar 2009 13:16:58 +0000 Subject: [PATCH] print size of unmodified bin file git-svn-id: http://svn.code.sf.net/p/netboot65/code@63 93682198-c243-4bdb-bd91-e943c89aac3b --- client/clients/fix_cart.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/clients/fix_cart.rb b/client/clients/fix_cart.rb index c9d5b4e..88a33a7 100644 --- a/client/clients/fix_cart.rb +++ b/client/clients/fix_cart.rb @@ -11,8 +11,9 @@ if filename.nil? then exit end -puts "fixing length of #{filename} to #{FILE_LENGTH} bytes" + infile=File.open(filename,"rb").read +puts "fixing length of #{filename} from #{infile.length} to #{FILE_LENGTH} bytes" outfile=File.open(filename,"wb") outfile<