Diff

Differences From Artifact [23ac99bb04]:

To Artifact [51a20f4879]:


185
186
187
188
189
190
191







192
193
194
195
196
197
198
...
322
323
324
325
326
327
328
329
330
331
332
333
334
	retval->totalram  = mem_stats->total;
	retval->freeram   = mem_stats->free;
	retval->cachedram = mem_stats->cache;
	retval->sharedram = 0;
	retval->bufferram = 0;
	retval->totalswap = swap_stats->total;
	retval->freeswap  = swap_stats->free;








	return(0);
}
#endif

int main(int argc, char **argv) {
	struct freecolor_meminfo sinfo;
................................................................................
			}
		}

		if (doloop==0) {
			break;
		}

		usleep(doloop*1000000);
		printf("\033[%iA",linestoup);
	}

	return(0);
}







>
>
>
>
>
>
>







 







|
|




185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
...
329
330
331
332
333
334
335
336
337
338
339
340
341
	retval->totalram  = mem_stats->total;
	retval->freeram   = mem_stats->free;
	retval->cachedram = mem_stats->cache;
	retval->sharedram = 0;
	retval->bufferram = 0;
	retval->totalswap = swap_stats->total;
	retval->freeswap  = swap_stats->free;

#ifdef HAVE_SG_FREE_MEM_STATS
	sg_free_mem_stats(mem_stats);
#endif
#ifdef HAVE_SG_FREE_SWAP_STATS
	sg_free_swap_stats(swap_stats);
#endif

	return(0);
}
#endif

int main(int argc, char **argv) {
	struct freecolor_meminfo sinfo;
................................................................................
			}
		}

		if (doloop==0) {
			break;
		}

		usleep(doloop * 1000000);
		printf("\033[%iA", linestoup);
	}

	return(0);
}