hash table for caching username lookups, etc.
This commit is contained in:
1 parent
d6cb75e1d2
commit
f932402774
2 files changed
+94
No files matched your search
@@ -69,4 +69,17 @@ double sigar_file_system_usage_calc_used(sigar_t *sigar,
|
||||
|
||||
void sigar_cpu_model_adjust(sigar_t *sigar, sigar_cpu_info_t *info);
|
||||
|
||||
typedef struct sigar_cache_entry_t sigar_cache_entry_t;
|
||||
|
||||
struct sigar_cache_entry_t {
|
||||
sigar_cache_entry_t *next;
|
||||
sigar_uint64_t id;
|
||||
void *value;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
sigar_cache_entry_t **entries;
|
||||
unsigned int count, size;
|
||||
} sigar_cache_t;
|
||||
|
||||
#endif /* SIGAR_UTIL_H */
|
||||
Reference in new issue
Block a user