MarisElsins / getMOSPatch

getMOSPatch V2 - Tool that helps downloading patches from My Oracle Support
58 stars 17 forks source link

Download size and speed turned negative #11

Closed ghost closed 6 years ago

ghost commented 6 years ago

Not sure if this is a bug or something I did not read correctly. While downloading the latest psu, I noticed the download size and speed go negative - Is this right?


salt19@i7:~/downloads$ java -jar getMOSPatch.jar patch=27010941 MOSUser=johnny@walker.com
Enter your MOS password: 
|
We're going to download patches for the following Platforms/Languages:
 226P - Linux x86-64

Processing patch 27010941 for Linux x86-64 and applying regexp .* to the filenames:
 1 - p27010941_121020_Linux-x86-64.zip
 Enter Comma separated files to download: 1

Downloading all selected files:
 Downloading p27010941_121020_Linux-x86-64.zip: -1604MB at average speed of -4177KB/s - DONE!  
salt19@i7:~/downloads$ ```

This is what I am using and am guessing its the latest -

salt19@i7:~/downloads$ cksum getMOSPatch.jar 
4173091560 8930 getMOSPatch.jar
salt19@i7:~/downloads$ 
MarisElsins commented 6 years ago

Hi, thanks for reporting this. it was a bug. p27010941_121020_Linux is a 2.4G sized file, and the file size variable ran out of range as it was an integer. I fixed the issue, you can download the new version of the tool.

before:

$ java -jar ~/GitHub/MarisElsins/getMOSPatch/getMOSPatch.jar patch=27010941 MOSUser=elsins@pythian.com platform=226P
Enter your MOS password:
/
Enter Comma separated platforms to list: 226P

We're going to download patches for the following Platforms/Languages:
 226P - Linux x86-64

Processing patch 27010941 for Linux x86-64 and applying regexp .* to the filenames:
 1 - p27010941_121020_Linux-x86-64.zip
 Enter Comma separated files to download: 1

Downloading all selected files:
 Downloading p27010941_121020_Linux-x86-64.zip: -1604MB at average speed of -3187KB/s - DONE!

after:

$ java -jar ~/GitHub/MarisElsins/getMOSPatch/getMOSPatch.jar patch=27010941 MOSUser=elsins@pythian.com platform=226P
Enter your MOS password:
|
Enter Comma separated platforms to list: 226P

We're going to download patches for the following Platforms/Languages:
 226P - Linux x86-64

Processing patch 27010941 for Linux x86-64 and applying regexp .* to the filenames:
 1 - p27010941_121020_Linux-x86-64.zip
 Enter Comma separated files to download: 1

Downloading all selected files:
 Downloading p27010941_121020_Linux-x86-64.zip: 2491MB at average speed of 9389KB/s - DONE!
ghost commented 6 years ago

Thank you appreciate the quick response.