# | Line 65 | Line 65 | char *get_page_stats(){ | |
---|---|---|
65 | continue; | |
66 | } | |
67 | } | |
68 | < | |
68 | > | if((kstat_close(kc)) != 0){ |
69 | > | errf("Failed to close kstat control structure (%m)"); |
70 | > | return NULL; |
71 | > | } |
72 | swap_pageins=(cs.cpu_vminfo.pgswapin-swapin)/WAIT_TIME_IN_SECS; | |
73 | swap_pageouts=(cs.cpu_vminfo.pgswapout-swapout)/WAIT_TIME_IN_SECS; | |
74 | #endif | |
# | Line 161 | Line 164 | char *get_page_stats(){ | |
164 | } | |
165 | return xml_page_stats; | |
166 | } | |
164 | – | |
165 | – | int main(){ |
166 | – | printf("%s\n",get_page_stats()); |
167 | – | exit(0); |
168 | – | } |
169 | – |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |