<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[после переезда на 3.7 сломалось SecondsToUptime()]]></title><description><![CDATA[<p dir="auto">Uptime на всех устройствах мониторил по SNMP. Преобразовывался в текстовый вид.<br />
Transformation стоял такой:<br />
SecondsToUptime($1/100)</p>
<p dir="auto">Стал писать ошибку<br />
<strong>Error 19 in line 1: Function or operation argument is not a whole number</strong></p>
]]></description><link>https://forum.netxms.org/topic/6898/после-переезда-на-3.7-сломалось-secondstouptime</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 23:44:56 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6898.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Feb 2021 07:01:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to после переезда на 3.7 сломалось SecondsToUptime() on Mon, 15 Feb 2021 06:55:44 GMT]]></title><description><![CDATA[<p dir="auto">после обновы на *****.8.120 проблема ушла</p>
]]></description><link>https://forum.netxms.org/post/29497</link><guid isPermaLink="true">https://forum.netxms.org/post/29497</guid><dc:creator><![CDATA[sergey_t]]></dc:creator><pubDate>Mon, 15 Feb 2021 06:55:44 GMT</pubDate></item><item><title><![CDATA[Reply to после переезда на 3.7 сломалось SecondsToUptime() on Mon, 15 Feb 2021 05:32:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/filipp-sudanov" aria-label="Profile: filipp-sudanov">@<bdi>filipp-sudanov</bdi></a> said in <a href="/post/29481">после переезда на 3.7 сломалось SecondsToUptime()</a>:</p>
<blockquote>
<p dir="auto">Попробуйте 3.8, она вышла только что</p>
</blockquote>
<p dir="auto">Уже. Эта проблема ушла</p>
]]></description><link>https://forum.netxms.org/post/29494</link><guid isPermaLink="true">https://forum.netxms.org/post/29494</guid><dc:creator><![CDATA[Akira]]></dc:creator><pubDate>Mon, 15 Feb 2021 05:32:16 GMT</pubDate></item><item><title><![CDATA[Reply to после переезда на 3.7 сломалось SecondsToUptime() on Fri, 12 Feb 2021 14:32:20 GMT]]></title><description><![CDATA[<p dir="auto">Попробуйте 3.8, она вышла только что</p>
]]></description><link>https://forum.netxms.org/post/29481</link><guid isPermaLink="true">https://forum.netxms.org/post/29481</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 12 Feb 2021 14:32:20 GMT</pubDate></item><item><title><![CDATA[Reply to после переезда на 3.7 сломалось SecondsToUptime() on Wed, 10 Feb 2021 05:59:45 GMT]]></title><description><![CDATA[<p dir="auto">попробовал обновиться на 145 версию, глюк остался, откатил</p>
]]></description><link>https://forum.netxms.org/post/29439</link><guid isPermaLink="true">https://forum.netxms.org/post/29439</guid><dc:creator><![CDATA[sergey_t]]></dc:creator><pubDate>Wed, 10 Feb 2021 05:59:45 GMT</pubDate></item><item><title><![CDATA[Reply to после переезда на 3.7 сломалось SecondsToUptime() on Tue, 09 Feb 2021 11:47:17 GMT]]></title><description><![CDATA[<p dir="auto">Это баг в NXSL интерпретаторе, уже починили. В следующем релизе будет работать.</p>
]]></description><link>https://forum.netxms.org/post/29433</link><guid isPermaLink="true">https://forum.netxms.org/post/29433</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 09 Feb 2021 11:47:17 GMT</pubDate></item><item><title><![CDATA[Reply to после переезда на 3.7 сломалось SecondsToUptime() on Tue, 09 Feb 2021 05:33:03 GMT]]></title><description><![CDATA[<p dir="auto">netxms-server-3.7.145-x64.exe</p>
<p dir="auto">Снятие данных по SNMP - .1.3.6.1.2.1.1.3.0<br />
Value - 2108117300<br />
Raw - 2108117300</p>
<p dir="auto">С transformation SecondsToUptime($1) - 24399 days 15:45<br />
С transformation SecondsToUptime($1/100) - ERROR<br />
С transformation SecondsToUptime($1/100) через Test и ручным вводом 600 - смотреть картинку + ошибка "Error 19 in line 1: Function or operation argument is not a whole number"</p>
<p dir="auto">Что любопытно.<br />
Если transformation - "$1" - выходные данные Uptime = 2108193800<br />
Если transformation - "$1/100" - выходные данные Uptime = 21081979.000000</p>
<p dir="auto">Откуда получается не целое?</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005422-Capture.PNG" alt="Capture.PNG" class="img-markdown  img-fluid" width="615" height="541" /></p>
]]></description><link>https://forum.netxms.org/post/29432</link><guid isPermaLink="true">https://forum.netxms.org/post/29432</guid><dc:creator><![CDATA[Akira]]></dc:creator><pubDate>Tue, 09 Feb 2021 05:33:03 GMT</pubDate></item><item><title><![CDATA[Reply to после переезда на 3.7 сломалось SecondsToUptime() on Mon, 08 Feb 2021 14:48:34 GMT]]></title><description><![CDATA[<p dir="auto">У меня не получилось повторить. Какая точно версия? Можете проверить на самой свежей 3.7?<br />
Проявляется только в трансформационном скрипте, или если на ноде сделать Execute Server Script, то там тоже? Что именно в $1?</p>
]]></description><link>https://forum.netxms.org/post/29429</link><guid isPermaLink="true">https://forum.netxms.org/post/29429</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 08 Feb 2021 14:48:34 GMT</pubDate></item><item><title><![CDATA[Reply to после переезда на 3.7 сломалось SecondsToUptime() on Sat, 06 Feb 2021 04:04:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/filipp-sudanov" aria-label="Profile: filipp-sudanov">@<bdi>filipp-sudanov</bdi></a> said in <a href="/post/29421">после переезда на 3.7 сломалось SecondsToUptime()</a>:</p>
<blockquote>
<p dir="auto">Видимо что-то поменялось в языке. По документации SecondsToUptime принимает целый агрумент, так что можно округлить:</p>
<p dir="auto">SecondsToUptime(round($1/100))</p>
</blockquote>
<p dir="auto">неа, ошибка осталась. я так уже пробовал</p>
]]></description><link>https://forum.netxms.org/post/29423</link><guid isPermaLink="true">https://forum.netxms.org/post/29423</guid><dc:creator><![CDATA[Akira]]></dc:creator><pubDate>Sat, 06 Feb 2021 04:04:44 GMT</pubDate></item><item><title><![CDATA[Reply to после переезда на 3.7 сломалось SecondsToUptime() on Fri, 05 Feb 2021 20:12:22 GMT]]></title><description><![CDATA[<p dir="auto">Видимо что-то поменялось в языке. По документации SecondsToUptime принимает целый агрумент, так что можно округлить:</p>
<p dir="auto">SecondsToUptime(round($1/100))</p>
]]></description><link>https://forum.netxms.org/post/29421</link><guid isPermaLink="true">https://forum.netxms.org/post/29421</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 05 Feb 2021 20:12:22 GMT</pubDate></item></channel></rss>