davidpeterunderhill / Intersystems-Database-Metrics-example

MIT License
1 stars 2 forks source link

breaks on Win and in Docker with <DIVIDE> #1

Closed rcemper closed 3 years ago

rcemper commented 3 years ago

Calculation of DiskSize fail on both OS := "" which causes Sorry unusable In addition, it is not prepared for OS in local language

davidpeterunderhill commented 3 years ago

Need examples of failure, i.e. what output do the OS commands provide?

rcemper commented 3 years ago

Inserted a BREAK after consuming resultset

IRISAPP>d ##class(Metrics.Task).%New().OnTask()
  break
  ^
<BREAK>zOnTask+16^Metrics.Task.1
IRISAPP 2d1>zw
<Private variables>
databaseResults=<OBJECT REFERENCE>[1@%Library.ResultSet]
status=1
database="DEMO"
databases("DEMO")="c:\intersystems\demo\"
databases("DEMO","Available")=2560
databases("DEMO","DiskFreeSpace")=23110615.04
databases("DEMO","DiskSize")=""     <<<<<<<<<<<<<<<<<<<<<<<<<<<
databases("DEMO","Free")=1.59
databases("DEMO","MaxSize")=0
databases("DEMO","Size")=160768
databases("DEMO","Used")=158208
IRISAPP 2d1>w $zv
IRIS for Windows (x86-64) 2021.1 (Build 215U) Wed Jun 9 2021 09:39:22 EDT
IRISAPP 2d1>

DiszSize is just a NULL

The same happens on Docker container

rcemper commented 3 years ago

pull merger fixed it

rcemper commented 3 years ago

not clear what OS command you refer to: my guess:

C:\Users\cemper>wmic diskdrive get size
Size
1011709440
128034708480