Welcome, Guest. Please login or register.

Author Topic: Blitz: DosElmoreLib incorrectly reporting DiskUsed  (Read 2019 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Blitz: DosElmoreLib incorrectly reporting DiskUsed
« on: August 30, 2006, 08:01:37 AM »
It calculates the disk size using signed 32bit math. If the partition size is >2GB it b0rks.

Quote
However, I also get negative values from RAM: and DF0:.

Well, if that happens then the routine is broken even more ways than just 32bit signed math.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Blitz: DosElmoreLib incorrectly reporting DiskUsed
« Reply #1 on: August 30, 2006, 08:35:08 AM »
Call dos.library/Info() yourself and use 64bit math to calculate sizes.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Blitz: DosElmoreLib incorrectly reporting DiskUsed
« Reply #2 on: August 30, 2006, 09:01:49 AM »
Right, I don't have a clue how you can do that in Blitz, anyway. Maybe someone with a blitz clue could help?