diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-01-19 22:32:08 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-01-19 22:32:08 +0200 |
commit | d7a1f3c8494e0546fc4c31d22b390a87ea9bd21a (patch) | |
tree | 4654d5039eeeb35bdb4d004acee07c0263c70532 /src/proc_net_softnet_stat.c | |
parent | 24f08563cf6392082c18a73e20f077bec3bdb92e (diff) |
inline string to number conversion
Diffstat (limited to 'src/proc_net_softnet_stat.c')
-rw-r--r-- | src/proc_net_softnet_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proc_net_softnet_stat.c b/src/proc_net_softnet_stat.c index 7fe5b7d5dc..4a6b411464 100644 --- a/src/proc_net_softnet_stat.c +++ b/src/proc_net_softnet_stat.c @@ -62,7 +62,7 @@ int do_proc_net_softnet_stat(int update_every, usec_t dt) { for(w = 0; w < words ; w++) { if(unlikely(softnet_column_name(w))) { - uint32_t t = strtoul(procfile_lineword(ff, l, w), NULL, 16); + uint32_t t = (uint32_t)strtoul(procfile_lineword(ff, l, w), NULL, 16); data[w] += t; data[((l + 1) * allocated_columns) + w] = t; } |