]> arthur.barton.de Git - netdata.git/commitdiff
Merge pull request #1313 from rlefevre/monotonic-clock
authorCosta Tsaousis <costa@tsaousis.gr>
Sun, 11 Dec 2016 15:18:02 +0000 (17:18 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Dec 2016 15:18:02 +0000 (17:18 +0200)
use monotonic clock for all time computations

1  2 
src/proc_interrupts.c
src/proc_softirqs.c

index fd10044c7601c832f2e3dc8042e74c67c279aee4,6d3d23995059d8aacc135723bc00e1d15d1e9811..46f534c518e0cf60dc8be8d183e62983b7748044
@@@ -48,8 -29,9 +48,8 @@@ static inline struct interrupt *get_int
      return irrs;
  }
  
- int do_proc_interrupts(int update_every, unsigned long long dt) {
+ int do_proc_interrupts(int update_every, usec_t dt) {
      (void)dt;
 -
      static procfile *ff = NULL;
      static int cpus = -1, do_per_core = -1;
      struct interrupt *irrs = NULL;
index 482dc461a9b93bd68102ed0a2a865bb830c5018a,319f97f7c74515c3af30a01224d1344049c0325d..a6e77fc309cb7c79dbba5efbd66a96d3e9c57698
@@@ -48,10 -29,12 +48,10 @@@ static inline struct interrupt *get_int
      return irrs;
  }
  
- int do_proc_softirqs(int update_every, unsigned long long dt) {
+ int do_proc_softirqs(int update_every, usec_t dt) {
      (void)dt;
 -
      static procfile *ff = NULL;
      static int cpus = -1, do_per_core = -1;
 -
      struct interrupt *irrs = NULL;
  
      if(unlikely(do_per_core == -1)) do_per_core = config_get_boolean("plugin:proc:/proc/softirqs", "interrupts per core", 1);