Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: Sys::MemInfo on AIX

by rgren925 (Beadle)
on Sep 04, 2018 at 20:14 UTC ( #1221707=note: print w/replies, xml ) Need Help??

in reply to Re: Sys::MemInfo on AIX
in thread Sys::MemInfo on AIX

It worked!

The change from u_longlong_t to double actually needed to be made in MemInfo.xs. All the platforms are now working.

Thank you so much for this! Rick

Replies are listed 'Best First'.
Re^3: Sys::MemInfo on AIX
by bliako (Monsignor) on Sep 05, 2018 at 01:36 UTC


    just test it so that you make sure you don't loose out on the conversion.

    Maybe the following C program will tell you the type sizes provided you manage to compile it:

    #include <stdio.h> #include <libperfstat.h> int main(void){ printf("double: %d bytes\n", sizeof(double)); printf("u_longlong_t: %d bytes\n", sizeof(u_longlong_t)); printf("unsigned long long: %d bytes\n", sizeof(unsigned long +long)); return(0); }

    Note: others here who do know the internals of Perl may have a better solution, if your application is critical.

    bw, bliako

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1221707]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2023-10-01 06:25 GMT
Find Nodes?
    Voting Booth?

    No recent polls found