Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Added posibility to show also TB sizes. | ea2d2ad8a5e48a6825bd22aaa2635de4ee774cbf | Catalin(ux) M. BOIE | 2008-05-21 13:56:09 |
Improved speed of scrolling. | c6760d76d067556b58e289a38558efe44f8ccfce | Catalin(ux) M. BOIE | 2008-01-08 22:45:36 |
Resizing current screen will trigger a redraw. | 75bad458e75c422fb98f407ef634d3b22c5ca0e5 | Catalin(ux) M. BOIE | 2008-01-08 22:45:15 |
Now pressing END will go to the last page _and_ to the last line. | 1788e9fc6e972ff5ef6323a4a8165f151856c6f4 | Catalin(ux) M. BOIE | 2008-01-08 22:44:58 |
Fixed the code so only some keys triggers a redraw of the screen. | 0d79d715e92420d8db68772366387a202f9dfc89 | Catalin(ux) M. BOIE | 2008-01-08 22:44:42 |
Fixed positioning at the end of list. | bfedb7fbce206af12cf5cd03ddf88f670982ea1f | Catalin(ux) M. BOIE | 2008-01-08 22:44:20 |
Because name iotop is already taken, renamed iotop to io. | a4fc9285d5b4079c98e63363859781451e38d076 | Catalin(ux) M. BOIE | 2008-01-08 22:43:36 |
More stuff added to TODO. | a01548b432cd10a3792f18dd3bbf2b2f3a8a6c57 | Catalin(ux) M. BOIE | 2007-11-01 23:44:17 |
Give warnings instead of exit if some info is not available. | 6317c98dd69f6f8177e3bde1409b934b17d53ef9 | Catalin(ux) M. BOIE | 2007-11-01 23:35:31 |
Renamed pwatch_counters_avail to pwatch_fdinfo_avail. | 44efae853dca6b1f5c50dfdf56cfd0be5bb19792 | Catalin(ux) M. BOIE | 2007-11-01 23:05:55 |
Impoved a little the description from spec file. | d367b069e3f51be7e159758fc8d9e9a0ef8078bb | Catalin(ux) M. BOIE | 2007-10-30 09:55:24 |
Added homepage to README file. | e0976ec7f6decd8bcf7c4cff3bb36fc16702332a | Catalin(ux) M. BOIE | 2007-10-30 09:54:25 |
Warn if user has a not enough recent kernel and refuse to work. | 3687f3965abc6aa66bbde34a7fd53795874aaa69 | Catalin(ux) M. BOIE | 2007-10-30 09:52:32 |
No need to have Changelog in git. | 2b04dcd1a0a428722ae2ec490eb0ccab93a74e75 | Catalin(ux) M. BOIE | 2007-10-24 09:33:42 |
Added GIT_COMMIT stuff. | e724fe6003c3e7d30f5d9f78a9ff8ae4fc958fc4 | Catalin(ux) M. BOIE | 2007-10-24 09:29:43 |
duilder should be in git repository. | eb90b4b59cb3ab9dfb2d5fe3f06561110f2bca98 | Catalin(ux) M. BOIE | 2007-10-24 08:48:45 |
Added more info. | b91dc05444309ef93aa3c5dc2890fbe4bcbaf82d | Catalin(ux) M. BOIE | 2007-10-24 08:48:27 |
Removed duilder from .gitignore. | fb32de1325e3719c8214ac3dd4be099a66a2d36f | Catalin(ux) M. BOIE | 2007-10-24 08:47:33 |
Switch to new duilder variables. | 2ad644f672ced83758a19dda33b8f23abbf60cc5 | Catalin(ux) M. BOIE | 2007-10-23 02:51:46 |
Added a new screenshot. | 3cc31df36f6a78e2d17b727f9f272f9dec9f32f5 | Catalin(ux) M. BOIE | 2007-10-23 02:12:56 |
File | Lines added | Lines deleted |
---|---|---|
src/pwatch.c | 28 | 8 |
File src/pwatch.c changed (mode: 100644) (index 4d79bc7..792f6e5) | |||
... | ... | int pwatch_get_content(const char *file, char *buf, const size_t buf_len) | |
41 | 41 | void pwatch_nice_output(char *buf, size_t buf_len, | void pwatch_nice_output(char *buf, size_t buf_len, |
42 | 42 | const unsigned long long value) | const unsigned long long value) |
43 | 43 | { | { |
44 | if (value < 1024) { | ||
45 | snprintf(buf, buf_len, "%llu B", value); | ||
46 | } else if (value < 1024 * 1024) { | ||
47 | snprintf(buf, buf_len, "%llu K", value / 1024); | ||
48 | } else if (value < 1024 * 1024 * 1024) { | ||
49 | snprintf(buf, buf_len, "%llu M", value / 1024 / 1024); | ||
50 | } else { | ||
51 | snprintf(buf, buf_len, "%llu G", value / 1024 / 1024 / 1024); | ||
44 | unsigned long long new; | ||
45 | |||
46 | new = value; | ||
47 | if (new < 1024) { | ||
48 | snprintf(buf, buf_len, "%llu B", new); | ||
49 | return; | ||
50 | } | ||
51 | |||
52 | new = new / 1024; | ||
53 | if (new < 1024) { | ||
54 | snprintf(buf, buf_len, "%llu K", new); | ||
55 | return; | ||
56 | } | ||
57 | |||
58 | new = new / 1024; | ||
59 | if (new < 1024) { | ||
60 | snprintf(buf, buf_len, "%llu M", new); | ||
61 | return; | ||
62 | } | ||
63 | |||
64 | new = new / 1024; | ||
65 | if (new < 1024) { | ||
66 | snprintf(buf, buf_len, "%llu G", new); | ||
67 | return; | ||
52 | 68 | } | } |
69 | |||
70 | new = new / 1024; | ||
71 | snprintf(buf, buf_len, "%llu T", | ||
72 | new); | ||
53 | 73 | } | } |
54 | 74 | ||
55 | 75 | /* | /* |