netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=ff9a38f0ff13f650205e222cb5683d27085987c0

commit ff9a38f0ff13f650205e222cb5683d27085987c0
Author: Alastair Poole <[email protected]>
Date:   Fri Feb 14 20:10:54 2020 +0000

    ui: Minor formatting
---
 src/bin/ui.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/bin/ui.c b/src/bin/ui.c
index 800d0fc..294f120 100644
--- a/src/bin/ui.c
+++ b/src/bin/ui.c
@@ -13,7 +13,6 @@
 
 static Eina_Lock _lock;
 
-
 void
 ui_shutdown(Ui *ui)
 {
@@ -77,11 +76,7 @@ _system_stats(void *data, Ecore_Thread *thread)
 static unsigned long
 _mem_adjust(Data_Unit unit, unsigned long value)
 {
-   if (unit == DATA_UNIT_KB)
-     {
-        //FIXME: KB is memory base default.
-     }
-   else if (unit == DATA_UNIT_MB)
+   if (unit == DATA_UNIT_MB)
      {
         value >>= 10;
      }
@@ -118,9 +113,6 @@ _path_append(const char *path, const char *file)
    char *concat;
    int len;
    char separator = '/';
-#ifdef WIN32
-   separator = '\\';
-#endif
 
    len = strlen(path) + strlen(file) + 2;
    concat = malloc(len * sizeof(char));
@@ -173,7 +165,9 @@ _tab_misc_update(Ui *ui, results_t *results)
         Eina_Strbuf *buf = eina_strbuf_new();
         eina_strbuf_append_printf(buf, "Battery %s ", 
results->power.battery_names[i]);
         if (results->power.have_ac && i == 0)
-          eina_strbuf_append(buf, "(plugged in)");
+          {
+             eina_strbuf_append(buf, "(plugged in)");
+          }
 
         elm_object_text_set(frame, eina_strbuf_string_get(buf));
 
@@ -2359,7 +2353,7 @@ ui_add(Evas_Object *parent)
    _process_list_update(ui);
    _process_panel_update(ui);
 
-   ui->thread_system = ecore_thread_feedback_run(_system_stats, 
_system_stats_feedback_cb, _thread_end_cb, _thread_error_cb, ui, EINA_FALSE);
+   ui->thread_system  = ecore_thread_feedback_run(_system_stats, 
_system_stats_feedback_cb, _thread_end_cb, _thread_error_cb, ui, EINA_FALSE);
    ui->thread_process = ecore_thread_feedback_run(_process_list, 
_process_list_feedback_cb, _thread_end_cb, _thread_error_cb, ui, EINA_FALSE);
 
    evas_object_event_callback_add(ui->content, EVAS_CALLBACK_KEY_DOWN, 
_evisum_key_down_cb, ui);

-- 


Reply via email to