Search found 164 matches

by sanderj
01 May 2020, 04:50
Forum: Support
Topic: NZBGet Shows -2146640073.00mb Disk Space
Replies: 11
Views: 798

Re: NZBGet Shows -2146640073.00mb Disk Space

OK, as I don't have the unlimited aka 1PB ... back to you: With this python3 script named show_free_diskspace.py #!/usr/bin/python3 import os, sys mydir = sys.argv[1] st = os.statvfs(mydir) print(st) myfree = st.f_bavail * st.f_frsize print("Free:", myfree) print("Free GB:", int(myfree/(1024*1024*10...
by sanderj
30 Apr 2020, 20:22
Forum: Support
Topic: NZBGet Shows -2146640073.00mb Disk Space
Replies: 11
Views: 798

Re: NZBGet Shows -2146640073.00mb Disk Space

Ouch: my https://drive.google.com/drive/my-drive says "55.8 GB of 101 GB used". Ah, so in my case the "df -h" is showing the correct space.

So ... how do you get the 1PB and 2PB? Is that goolge language for a unlimited plan?
by sanderj
30 Apr 2020, 19:56
Forum: Support
Topic: NZBGet Shows -2146640073.00mb Disk Space
Replies: 11
Views: 798

Re: NZBGet Shows -2146640073.00mb Disk Space

Out of curiosity, I tried out rclone. It works, but after a mount like this rclone mount google-drive:LinuxDocs /home/sander/myGoogleDrive_LinuxDocs (which works; I can copy to that directory) a `df -h` still show the space of my local disk, and not 1PB or so google-drive:LinuxDocs 101G 7,3G 46G 14%...
by sanderj
30 Apr 2020, 08:49
Forum: Support
Topic: NZBGet Shows -2146640073.00mb Disk Space
Replies: 11
Views: 798

Re: NZBGet Shows -2146640073.00mb Disk Space

They are rclone mounts. Each mount is registered as 1pb, so when 2 are merged it becomes 2pb. Can I change the code somehow to work with the 2.1pb? First things first: find any method to find the real available space ... Preferrably via statvfs() EDIT: Wait ... if rclone space indeed is 2.1PB as re...
by sanderj
30 Apr 2020, 08:32
Forum: Support
Topic: NZBGet Shows -2146640073.00mb Disk Space
Replies: 11
Views: 798

Re: NZBGet Shows -2146640073.00mb Disk Space

So, df -h tells you /mnt/unionfs has free ... 2.1PB. That is 2100 TB. <insert sound of one million dollars dr evil> 2.1PB is 2,1e+9 MB = 2.100.000.000 MB which is indeed around the 2^32 + -2.146.640.073 which I suggested. But back to your 2.1PB: do you really have 2100 TB diskspace? So 400 disks of ...
by sanderj
29 Apr 2020, 05:46
Forum: Support
Topic: NZBGet Shows -2146640073.00mb Disk Space
Replies: 11
Views: 798

Re: NZBGet Shows -2146640073.00mb Disk Space

2's complement problem? -2146640073 + 2^32 is ... 2147483648. Coincidence? What does df -h /your/dir report about that diskspace? AFAIK the relevant code in nzbget is this: int64 FileSystem::FreeDiskSize(const char* path) { //snip struct statvfs diskdata; if (!statvfs(path, &diskdata)) { return (int...
by sanderj
20 Apr 2020, 07:59
Forum: Support
Topic: API: History returns negative values for 'FileSizeLo'
Replies: 7
Views: 797

Re: API: History returns negative values for 'FileSizeLo'

"FileSizeLo" : -1495418638, "FileSizeHi" : 15, A two's complement problem? What if you add 4.2G to that, would that make sense? You would get 2^32 -1495418638 = 2799548658 FileSizeLo (int) - Initial size of all files in group in bytes, Low 32-bits of 64-bit value. FileSizeHi (int) - Initial size of ...
by sanderj
03 Mar 2020, 16:15
Forum: Support
Topic: History missing on server restart
Replies: 2
Views: 823

Re: History missing on server restart

Google 'ubuntu delay service startup'
by sanderj
08 Feb 2020, 07:28
Forum: Support
Topic: ErrNo 10054 / ErrNo 10060 with Newshosting
Replies: 3
Views: 1011

Re: ErrNo 10054 / ErrNo 10060 with Newshosting

Windows sockets error codes. See https://docs.microsoft.com/en-us/window ... or-codes-2

Cause: network problems.