<?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[Integer overflow after a transformation?]]></title><description><![CDATA[<p dir="auto">I have a DCI which collects a snmp value. The node presents this value via snmp in kilobytes as an Integer.</p>
<p dir="auto">I want to see this value in NetXMS in bytes. So I apply a transformation:<br />
return ($1 * 1024);</p>
<p dir="auto">The problem is that the value then gets reported by NetXMS as -145752064</p>
<p dir="auto">I have a feeling the Integer is overflowing after the transformation.</p>
<p dir="auto">Is there any way to get around this?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.netxms.org/topic/3316/integer-overflow-after-a-transformation</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:22:57 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3316.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Aug 2014 12:04:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Integer overflow after a transformation? on Wed, 13 Aug 2014 12:37:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/user54119" aria-label="Profile: user54119">@<bdi>user54119</bdi></a> said in <a href="/post/14655">Integer overflow after a transformation?</a>:</p>
<blockquote>
<p dir="auto">Try to set the data type of the DCI to "Integer 64 bit" and use this transformation script:</p>
<pre><code>return (int64($1) * 1024);
</code></pre>
</blockquote>
<p dir="auto">That did the trick, thanks!</p>
]]></description><link>https://forum.netxms.org/post/14656</link><guid isPermaLink="true">https://forum.netxms.org/post/14656</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Wed, 13 Aug 2014 12:37:13 GMT</pubDate></item><item><title><![CDATA[Reply to Integer overflow after a transformation? on Wed, 13 Aug 2014 12:30:26 GMT]]></title><description><![CDATA[<p dir="auto">Try to set the data type of the DCI to "Integer 64 bit" and use this transformation script:</p>
<pre><code>return (int64($1) * 1024);
</code></pre>
]]></description><link>https://forum.netxms.org/post/14655</link><guid isPermaLink="true">https://forum.netxms.org/post/14655</guid><dc:creator><![CDATA[user54119]]></dc:creator><pubDate>Wed, 13 Aug 2014 12:30:26 GMT</pubDate></item></channel></rss>