Removed 1 g_return_*.
* glibtop_private.c: (read_boot_time): Removed 1 g_return_*.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2005-10-29 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* glibtop_private.c: (read_boot_time):
|
||||||
|
|
||||||
|
Removed 1 g_return_*.
|
||||||
|
|
||||||
2005-08-15 Benoît Dejean <benoit@placenet.org>
|
2005-08-15 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
* cpu.c: (glibtop_get_cpu_s):
|
* cpu.c: (glibtop_get_cpu_s):
|
||||||
|
@@ -109,7 +109,10 @@ read_boot_time(glibtop *server)
|
|||||||
|
|
||||||
btime = strstr(buffer, "btime");
|
btime = strstr(buffer, "btime");
|
||||||
|
|
||||||
g_return_val_if_fail(btime != NULL, 0UL);
|
if (!btime) {
|
||||||
|
glibtop_warn_io_r(server, "cannot find btime in /proc/stat");
|
||||||
|
return 0UL;
|
||||||
|
}
|
||||||
|
|
||||||
btime = skip_token(btime);
|
btime = skip_token(btime);
|
||||||
return strtoul(btime, NULL, 10);
|
return strtoul(btime, NULL, 10);
|
||||||
|
Reference in New Issue
Block a user