You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The VM monitoring in PowerJoular allows monitoring in a Linux guest under any host OS (including Windows).
However, line endings in Linux (LF) is \n while in Windows (CRLF) it is \r\n.
Get_Line in Ada removes line ending only of the platform it is running on.
For instance, in Linux, the function removes LF line endings.
When reading a file created in Windows (such as a Windows host and Linux guest), the function remove LF ending but not CRLF, thus keeping an additional character and fails in converting to Long_Float.
Currently, we created a new function Read_Watts that will manually copy the digits and dot and properly converts the data.
Ideally, we need to explore a better solution and to replace it with standard Ada functions.
The text was updated successfully, but these errors were encountered:
The VM monitoring in PowerJoular allows monitoring in a Linux guest under any host OS (including Windows).
However, line endings in Linux (LF) is
\n
while in Windows (CRLF) it is\r\n
.Get_Line
in Ada removes line ending only of the platform it is running on.For instance, in Linux, the function removes LF line endings.
When reading a file created in Windows (such as a Windows host and Linux guest), the function remove LF ending but not CRLF, thus keeping an additional character and fails in converting to
Long_Float
.Currently, we created a new function
Read_Watts
that will manually copy the digits and dot and properly converts the data.Ideally, we need to explore a better solution and to replace it with standard Ada functions.
The text was updated successfully, but these errors were encountered: