Fix type mismatch
This commit is contained in:
parent
c1d06c7d63
commit
c36d4859d7
@ -147,7 +147,7 @@ char *sysinfo_backend_get_sound(void)
|
||||
|
||||
char *sysinfo_backend_get_uptime(void)
|
||||
{
|
||||
guint64 uptime;
|
||||
gint64 uptime;
|
||||
|
||||
if ((uptime = xs_parse_uptime ()) == 0)
|
||||
{
|
||||
|
@ -107,10 +107,10 @@ int xs_parse_cpu(char *model, char *vendor, double *freq)
|
||||
return 0;
|
||||
}
|
||||
|
||||
guint64 xs_parse_uptime(void)
|
||||
gint64 xs_parse_uptime(void)
|
||||
{
|
||||
char buffer[bsize];
|
||||
guint64 uptime = 0;
|
||||
gint64 uptime = 0;
|
||||
FILE *fp = fopen("/proc/uptime", "r");
|
||||
if(fp == NULL)
|
||||
return 0;
|
||||
|
@ -24,7 +24,7 @@
|
||||
#define _PARSE_H_
|
||||
|
||||
int xs_parse_cpu(char *model, char *vendor, double *freq);
|
||||
guint64 xs_parse_uptime(void);
|
||||
gint64 xs_parse_uptime(void);
|
||||
int xs_parse_sound(char *snd_card);
|
||||
int xs_parse_meminfo(unsigned long long *mem_tot, unsigned long long *mem_free, int swap);
|
||||
int xs_parse_video(char *vid_card);
|
||||
|
Loading…
Reference in New Issue
Block a user