~ubuntu-dev/ubuntu/lucid/zabbix/lucid-201002110857

« back to all changes in this revision

Viewing changes to src/libs/zbxsysinfo/osx/swap.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Haas
  • Date: 2009-10-10 12:21:16 UTC
  • mfrom: (1.1.10 upstream) (8.2.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091010122116-44k2zdq57rb40i6z
Tags: 1:1.6.6-2
* debian/po/ja.po updated (Closes: #548651)
* debian/po/cs.po updated (Closes: #548675)
* debian/po/sv.po updated (Closes: #548796)
* debian/po/de.po updated (Closes: #549248)
* debian/po/it.po updated (Closes: #549579)
* debian/po/pt.po updated (Closes: #550087)
* debian/po/ru.po updated (Closes: #550102)
* debian/po/es.po updated (Closes: #550173)
* debian/po/fr.po updated (Closes: #550315)
* Manpages for zabbix_server and zabbix_agent added (Closes: #496696)
* Added hint about the difference of the zabbix_agent.conf and
  zabbix_agentd.conf in each config file as a comment. (Closes: #548701)

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        /* grab all swap info */
65
65
        swapctl(SC_LIST, swt);
66
66
 
67
 
        /* walk thru the structs and sum up the fields */
 
67
        /* walk through the structs and sum up the fields */
68
68
        t = f = 0;
69
69
        ste = &(swt->swt_ent[0]);
70
70
        i = cnt;
71
71
        while (--i >= 0)
72
72
        {
73
 
                /* dont count slots being deleted */
 
73
                /* don't count slots being deleted */
74
74
                if (!(ste->ste_flags & ST_INDEL) &&
75
75
                !(ste->ste_flags & ST_DOINGDEL))
76
76
                {
196
196
                        return  SYSINFO_RET_FAIL;
197
197
        tot_val = result_tmp.ui64;
198
198
 
199
 
        /* Check fot division by zero */
 
199
        /* Check for division by zero */
200
200
        if(tot_val == 0)
201
201
        {
202
202
                free_result(&result_tmp);
231
231
                        return  SYSINFO_RET_FAIL;
232
232
        tot_val = result_tmp.ui64;
233
233
 
234
 
        /* Check fot division by zero */
 
234
        /* Check for division by zero */
235
235
        if(tot_val == 0)
236
236
        {
237
237
                free_result(&result_tmp);