Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Output bytes with more resolution. | 9186e62898ca1e255df9e88483829f300eec82b2 | Catalin(ux) M. BOIE | 2010-11-05 19:47:30 |
Cosmetic changes. | 1d0900baccc34cd5aceb1cb8d137cbb0c2dc676d | Catalin(ux) M. BOIE | 2010-11-05 19:47:19 |
Show also parameters after command. | 1e1644c7a23ad0ba9cf7f5e387c94c96e1c46863 | Catalin(ux) M. BOIE | 2010-11-05 19:46:50 |
More TODO items added. | 59f76d064266361dab046e343f96c821685580fc | Catalin(ux) M. BOIE | 2010-11-05 19:42:46 |
Duilder updates. | aea4172fc5ea31cddd55c9285b9241162b117760 | Catalin(ux) M. BOIE | 2010-10-30 22:08:44 |
Bump up the version to 0.0.5. | da39ad57b4b30f50ffe98fcd33b57a2c3391631f | Catalin(ux) M. BOIE | 2010-10-29 22:40:03 |
Cosmetic changes. | f55a262fa0efcb167a545adaa94c7dd82b2b34a5 | Catalin(ux) M. BOIE | 2010-10-29 22:38:33 |
no need for get_sort_by. | 8a80cc2fd4cfbba04420d130cea890087290e675 | Catalin(ux) M. BOIE | 2010-10-29 21:29:29 |
Show the name of the program in the first line. | 6a1cec9f2a9e028d254f8edbdd7dd30a8871f300 | Catalin(ux) M. BOIE | 2010-10-29 21:20:07 |
Exclude anon_inotify files. | 82d8aba0844c8adb0ab25be667fe30496efbc2fc | Catalin(ux) M. BOIE | 2010-10-29 21:13:49 |
Ignore Changelog*. | 6292255f489b3e8f71e690bd0c8a0f49e6dbc26e | Catalin(ux) M. BOIE | 2010-10-29 19:29:33 |
Do not export git tree and do not push it. | 4a18c42a27b68c53039957376f5c92ac65bedec2 | Catalin(ux) M. BOIE | 2010-10-27 21:09:47 |
Added duilder's RELEASE_SCRIPT. | 3962ddb7984b78d191f5babd0f95700d09c02ca5 | Catalin(ux) M. BOIE | 2010-10-27 21:08:58 |
Added .gitignore for src dir. | 775ff1c070d95b0ce381a8bcf591f5094d57e764 | Catalin(ux) M. BOIE | 2010-10-27 20:57:06 |
Dump to file the speed also. | d605c72b495ac7fc3f30d744e5f1eb8778efa3b8 | Catalin(ux) M. BOIE | 2010-10-27 20:38:46 |
More TODO entries. | df3c39a3c34ce849de7c2436b94a54f24972cbe5 | Catalin(ux) M. BOIE | 2010-10-27 20:38:12 |
Cosmetic. | c6e4a188d756a080eaa2d0a6e9f8e680b3c95083 | Catalin(ux) M. BOIE | 2010-10-27 20:36:27 |
Allow exit using upper 'q'. | dd46e260882ca2cb2edb949f1ad2341d4f94cdb8 | Catalin(ux) M. BOIE | 2009-10-30 23:01:36 |
TODO in. | 06e0185b6e8d363c397fb0ba1e1d5dc40b23b226 | Catalin(ux) M. BOIE | 2010-10-29 19:35:27 |
Cosmetic changes. | 0b4ca9f5819fd67271f5dfe40a92670f6a00c50b | Catalin(ux) M. BOIE | 2010-10-29 19:34:37 |
File | Lines added | Lines deleted |
---|---|---|
src/pwatch.c | 16 | 6 |
File src/pwatch.c changed (mode: 100644) (index 5a98c90..cc99cd2) | |||
... | ... | void pwatch_nice_output(char *buf, size_t buf_len, | |
63 | 63 | unsigned long long new; | unsigned long long new; |
64 | 64 | ||
65 | 65 | new = value; | new = value; |
66 | if (new < 1024) { | ||
66 | if (new <= 9999) { | ||
67 | 67 | snprintf(buf, buf_len, "%llu B", new); | snprintf(buf, buf_len, "%llu B", new); |
68 | 68 | return; | return; |
69 | 69 | } | } |
70 | 70 | ||
71 | 71 | new = new / 1024; | new = new / 1024; |
72 | if (new < 1024) { | ||
72 | if (new <= 9999) { | ||
73 | 73 | snprintf(buf, buf_len, "%llu K", new); | snprintf(buf, buf_len, "%llu K", new); |
74 | 74 | return; | return; |
75 | 75 | } | } |
76 | 76 | ||
77 | 77 | new = new / 1024; | new = new / 1024; |
78 | if (new < 1024) { | ||
78 | if (new <= 9999) { | ||
79 | 79 | snprintf(buf, buf_len, "%llu M", new); | snprintf(buf, buf_len, "%llu M", new); |
80 | 80 | return; | return; |
81 | 81 | } | } |
82 | 82 | ||
83 | 83 | new = new / 1024; | new = new / 1024; |
84 | if (new < 1024) { | ||
84 | if (new <= 9999) { | ||
85 | 85 | snprintf(buf, buf_len, "%llu G", new); | snprintf(buf, buf_len, "%llu G", new); |
86 | 86 | return; | return; |
87 | 87 | } | } |
88 | 88 | ||
89 | 89 | new = new / 1024; | new = new / 1024; |
90 | snprintf(buf, buf_len, "%llu T", | ||
91 | new); | ||
90 | if (new <= 9999) { | ||
91 | snprintf(buf, buf_len, "%llu T", new); | ||
92 | return; | ||
93 | } | ||
94 | |||
95 | new = new / 1024; | ||
96 | if (new <= 9999) { | ||
97 | snprintf(buf, buf_len, "%llu P", new); | ||
98 | return; | ||
99 | } | ||
100 | |||
101 | snprintf(buf, buf_len, " BIG!"); | ||
92 | 102 | } | } |
93 | 103 | ||
94 | 104 | /* | /* |