Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert size calculation for USBExtreme (can take more then 5 minutes) #531

Merged
merged 1 commit into from
Sep 3, 2021
Merged

Conversation

AKuHAK
Copy link
Member

@AKuHAK AKuHAK commented Sep 3, 2021

No description provided.

@rickgaiser rickgaiser merged commit 0555e9e into ps2homebrew:master Sep 3, 2021
@fjtrujy
Copy link
Contributor

fjtrujy commented Sep 3, 2021

Hello @AKuHAK,
Have you tried using stat instead of lseek (which is used in the getFileSize function)?

#include <sys/stat.h>
struct stat st;
stat(filename, &st);
size = st.st_size;

I'm not sure if it is faster, but just give it a try.

Regards.

AKuHAK pushed a commit that referenced this pull request Sep 30, 2021
Revert size calculation for USBExtreme (can take more then 5 minutes)
@AKuHAK AKuHAK deleted the UL.fix branch September 30, 2021 21:41
citronalco pushed a commit to citronalco/OPL-Daily-Builds that referenced this pull request Sep 10, 2023
Revert size calculation for USBExtreme (can take more then 5 minutes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants