ZABBIX Forums  
  #1  
Old 18-11-2008, 20:10
Age42 Age42 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 4
Default BUGFIX: proc.mem limited to 32bit on Solaris

lvalue is a signed long int, but psinfo.pr_size is size_t (which is unsigned).

Because of this, lvalue wraps when pr_size is > 2GB and the return for the memory is 0

This simple patch should resolve this issue.
Attached Files
File Type: patch proc.c.patch (274 Bytes, 196 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:10.