[asterisk-bugs] [Asterisk 0013057]: [patch] Fix 'core show sysinfo' command, it is returning all 0s.

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jul 16 16:16:32 CDT 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13057 
====================================================================== 
Reported By:                eliel
Assigned To:                bbryant
====================================================================== 
Project:                    Asterisk
Issue ID:                   13057
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 129724 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-10-2008 14:49 CDT
Last Modified:              07-16-2008 16:16 CDT
====================================================================== 
Summary:                    [patch] Fix 'core show sysinfo' command, it is
returning all 0s.
Description: 
sysinfo() for kernels > 2.3.23 is returning all values in mem_unit units,
so to get the number of bytes we must multiply it by mem_unit and not
divide it.

====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 07-16-08 16:16  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 131445

U   trunk/main/asterisk.c

------------------------------------------------------------------------
r131445 | bbryant | 2008-07-16 16:16:30 -0500 (Wed, 16 Jul 2008) | 9 lines

Fixes an issue with "core show sysinfo" that used the wrong operator to 
calculate the number of bytes from a sysinfo structure.
unsigned long.

(closes issue http://bugs.digium.com/view.php?id=13057)
Reported by: eliel
Patches:
      asterisk.c.patch uploaded by eliel (license 64)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=131445 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-16-08 16:16  svnbot         Note Added: 0090363                          
07-16-08 16:16  svnbot         Status                   acknowledged => assigned
07-16-08 16:16  svnbot         Assigned To               => bbryant         
======================================================================




More information about the asterisk-bugs mailing list