フォーク元 suwako/farfetch
fix indent
このコミットが含まれているのは:
コミット
30c7268063
|
@ -6,8 +6,7 @@
|
||||||
|
|
||||||
const char *display_storage() {
|
const char *display_storage() {
|
||||||
const char *excode = run_command_s("zpool list 2>/dev/null || echo $?");
|
const char *excode = run_command_s("zpool list 2>/dev/null || echo $?");
|
||||||
if (
|
if ( excode != NULL && (strncmp(excode, "127", strlen("127")) == 0)) {
|
||||||
excode != NULL && (strncmp(excode, "127", strlen("127")) == 0)) {
|
|
||||||
free((void *)excode);
|
free((void *)excode);
|
||||||
return run_command_s("df -h | "
|
return run_command_s("df -h | "
|
||||||
"awk '/^\\/dev\\// {printf \"%s: %s / %s, \", $1, $3, $2}' | "
|
"awk '/^\\/dev\\// {printf \"%s: %s / %s, \", $1, $3, $2}' | "
|
||||||
|
|
読み込み中…
新しいイシューから参照