mirror of
https://github.com/MatthiasPetermann/netbsd_exporter.git
synced 2025-10-25 20:01:59 +00:00
Consistently use 64 bit integers in print functions, refs #1
This commit is contained in:
parent
808fb5952a
commit
e61e5a96b6
2 changed files with 6 additions and 6 deletions
|
|
@ -53,11 +53,11 @@
|
|||
#include "netbsd_exporter.h"
|
||||
#include "version.h"
|
||||
|
||||
void print_filesystem_metric(const char* metric, const char* device, const char* mountpoint, long value) {
|
||||
printf("netbsd_fs_%s_bytes{device=\"%s\",mountpoint=\"%s\"} %ld\n", metric, device, mountpoint, value);
|
||||
void print_filesystem_metric(const char* metric, const char* device, const char* mountpoint, unsigned long long value) {
|
||||
printf("netbsd_fs_%s_bytes{device=\"%s\",mountpoint=\"%s\"} %llu\n", metric, device, mountpoint, value);
|
||||
}
|
||||
|
||||
void print_disk_io_metric(const char* device, long long unsigned int rbytes, long long unsigned int wbytes) {
|
||||
void print_disk_io_metric(const char* device, unsigned long long rbytes, unsigned long long wbytes) {
|
||||
printf("netbsd_dk_read_bytes{device=\"%s\"} %llu\n", device, rbytes);
|
||||
printf("netbsd_dk_write_bytes{device=\"%s\"} %llu\n", device, wbytes);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,13 +31,13 @@ const char *program_name = "netbsd_exporter";
|
|||
int option_http_header = 1;
|
||||
int option_syslog = 1;
|
||||
|
||||
void print_filesystem_metric(const char*, const char*, const char*, long );
|
||||
void print_filesystem_metric(const char*, const char*, const char*, unsigned long long);
|
||||
|
||||
void print_disk_io_metric(const char*, long long unsigned int, long long unsigned int );
|
||||
void print_disk_io_metric(const char*, unsigned long long, unsigned long long);
|
||||
|
||||
void print_load_metric(const char*, double );
|
||||
|
||||
void print_network_metric(const char*, unsigned long long, unsigned long long, unsigned long long );
|
||||
void print_network_metric(const char*, unsigned long long, unsigned long long, unsigned long long);
|
||||
|
||||
void print_memory_metric(const char*, long );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue