Subject | Hash | Author | Date (UTC) |
---|---|---|---|
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 |
Displayed the sorted column's header using a different color. | ab2fd95c996dc6999ccbdd30ade6c69b0933f42b | Cosmin HUMENIUC | 2008-07-17 11:36:24 |
Used the same background color for the entire line | 3671a14bc85ca65577612e996efbce52ce71c055 | Cosmin HUMENIUC | 2008-07-16 08:25:17 |
More TODOs added. | 05ed8b0a18505898f7ba503a60644c29e1762e6c | Catalin(ux) M. BOIE | 2010-09-30 20:15:20 |
Duilder updates. | 0af0ec7f6dcf2447485f9111c67eebadbbb48503 | Catalin(ux) M. BOIE | 2010-09-30 20:14:58 |
Close dir after open and in error paths! | 6aa78463f5e69e4dfc8b1893106de188746b8b3d | Catalin(ux) M. BOIE | 2010-09-30 20:13:59 |
Cosmetic changes to .mailmap. | c11badfe7864b7fb8e24bcf49dcedf18357c8d9a | Catalin(ux) M. BOIE | 2009-10-12 11:06:48 |
Store offset and size as 64 bits instead of 32 bits. | 1be11bbad878383067f23c2c52f0dfc65ad3346f | Catalin(ux) M. BOIE | 2009-10-12 09:50:05 |
File | Lines added | Lines deleted |
---|---|---|
src/io.c | 0 | 3 |
src/pwatch.c | 0 | 17 |
src/pwatch.h | 2 | 5 |
File src/io.c changed (mode: 100644) (index 9b3fb55..b5396f1) | |||
... | ... | int main(int argc, char *argv[]) | |
613 | 613 | break; | break; |
614 | 614 | } | } |
615 | 615 | ||
616 | snprintf(s_sort, sizeof(s_sort), "[Sort by: %s]", | ||
617 | pwatch_get_sort_by(sort_by, inverse)); | ||
618 | |||
619 | 616 | force_redraw = 1; | force_redraw = 1; |
620 | 617 | } | } |
621 | 618 |
File src/pwatch.c changed (mode: 100644) (index 792f6e5..e00a74a) | |||
... | ... | void pwatch_flags(char *buf, const size_t buf_len, | |
129 | 129 | snprintf(buf, buf_len, "%s", ibuf); | snprintf(buf, buf_len, "%s", ibuf); |
130 | 130 | } | } |
131 | 131 | ||
132 | char *pwatch_get_sort_by(const unsigned int sort_by, | ||
133 | const unsigned int inverse) | ||
134 | { | ||
135 | static char buf[64], *r; | ||
136 | |||
137 | switch (sort_by) { | ||
138 | case SORT_BY_BYTES_READ: r = "read bytes"; break; | ||
139 | case SORT_BY_BYTES_WRITE: r = "write bytes"; break; | ||
140 | case SORT_BY_SPEED_READ: r = "read speed"; break; | ||
141 | case SORT_BY_SPEED_WRITE: r = "write speed"; break; | ||
142 | } | ||
143 | |||
144 | snprintf(buf, sizeof(buf), "%s%s", | ||
145 | r, inverse == 1 ? " - inv" : ""); | ||
146 | |||
147 | return buf; | ||
148 | } |
File src/pwatch.h changed (mode: 100644) (index b20e715..a808b63) | |||
4 | 4 | enum { | enum { |
5 | 5 | SORT_BY_BYTES_READ, | SORT_BY_BYTES_READ, |
6 | 6 | SORT_BY_BYTES_WRITE, | SORT_BY_BYTES_WRITE, |
7 | SORT_BY_SPEED_READ, | ||
8 | SORT_BY_SPEED_WRITE | ||
7 | SORT_BY_SPEED_READ, | ||
8 | SORT_BY_SPEED_WRITE | ||
9 | 9 | }; | }; |
10 | 10 | ||
11 | 11 | ||
... | ... | extern void pwatch_nice_output(char *buf, size_t buf_len, | |
18 | 18 | extern void pwatch_flags(char *buf, const size_t buf_len, | extern void pwatch_flags(char *buf, const size_t buf_len, |
19 | 19 | const int flags); | const int flags); |
20 | 20 | ||
21 | extern char *pwatch_get_sort_by(const unsigned int sort_by, | ||
22 | const unsigned int inverse); | ||
23 | |||
24 | 21 | #endif | #endif |