Alexander Andreev
aa6b0cd453
Version updated to 1.1.0.
...
Now, instead of git repo cloning, release archive is being used.
And let's remove that sentence from README.
4 months ago
Alexander Andreev
cfa5c344cd
Added year 2022 to copyright.
...
Changed usage a little.
4 months ago
Alexander Andreev
7eecfbee01
Removed unnecessary (double) casting of interval_to_seconds result to interval_t.
4 months ago
Alexander Andreev
d398de1f8f
to_wattspersecond() changed to price_to_wattspersecond().
4 months ago
Alexander Andreev
d7501eb2a9
Changed formatting for parse_arguments().
4 months ago
Alexander Andreev
4e69cde16d
Weird int const chenged to const int in main().
4 months ago
Alexander Andreev
e68a52b95c
[README.md] Decided to update our cost of kWh. :)
4 months ago
Alexander Andreev
8699dbae89
Added info on how to install a downloaded package in Arch Linux.
10 months ago
Alexander Andreev
0024d33575
Oh, dir must be removed as well.
10 months ago
Alexander Andreev
8937e237dd
PKGBUILD made right.
10 months ago
Alexander Andreev
9673e4cd9d
A little typo fix. And yeah, electricity became a little higher. :)
10 months ago
Alexander Andreev
8556f85781
[main.{c,h}] Let's put some safety into this code! xD
1 year ago
Alexander Andreev
1ef712c6a5
[Makefile] Added a simple test that verifies output. Mostly as an example of use for test command.
1 year ago
Alexander Andreev
3d52d708bc
[README.md] shell to console.
1 year ago
Alexander Andreev
7a0f155e44
Oh, commas are not allowed here... Yikes.
1 year ago
Alexander Andreev
09be43c623
[PKGBUILD] Removed `epoch`. Set `arch` option properly.
1 year ago
Alexander Andreev
485f69d1e5
[main.h] Renoved struct arguments_t.
...
Changed definition of `parse_arguments`.
`to_seconds` -> `interval_to_seconds`, and inlined.
`print_version` and `print_usage` are inlined.
1 year ago
Alexander Andreev
b457c60f75
[main.c] Structure arguments_t removed. Use ptrs to vars instead. `parse_arguments` now returns status codes instead of printing stuff and closing program.
...
`to_wattpersecond` is now `to_wattspersecond`.
Fixed typo in usage, capitalised `options` word. Rephrased `print_version` text.
Removed unnecessary check from `interval_to_seconds` (former `to_seconds`) function.
1 year ago
Alexander Andreev
1799c62c48
[Makefile] Added .PHONY. Removed object compilation. This project won't get extra .c files anyway, so let's compile directly into executable.
1 year ago
Alexander Andreev
1abcf3d4cc
Updated README.
1 year ago
Alexander Andreev
e61890310f
kwh-calc renamed to more suitable name kwh-cost.
1 year ago
Alexander Andreev
25311a3b7e
Final fix. Let's set DESTDIR to / root by default. You can always change it with running make DESTDIR=your/path un/install.
1 year ago
Alexander Andreev
5ab493e7cc
Replaced printf in print_version() and print_usage() with puts.
1 year ago
Alexander Andreev
eeafa1c269
+NIGGER is not needed here.
1 year ago
Alexander Andreev
8b301c7038
All this text was replaced by just an info on where to look for a license.
1 year ago
Alexander Andreev
14262cd3c5
.vscode dir added to .gitignore.
1 year ago
Alexander Andreev
1681902262
Let's copy a LICENSE file as it is mandatory by MIT license.
1 year ago
Alexander Andreev
54aa50779f
Fixed KWh to be as it should be -- kWh. Another retarded moment fixed. :)
1 year ago
Alexander Andreev
24d19fa6ee
Added newlines at the end of source files to be compatible with clang.
1 year ago
Alexander Andreev
7306fd422b
Removed CC, since it is default anyway.
1 year ago
Alexander Andreev
861cec3d9a
Am I retarded? I am retarded... :) Fixed makepkg -i command in README.md.
1 year ago
Alexander Andreev
e8280301ae
Another, hopefully, final, fix of a link.
1 year ago
Alexander Andreev
b3661fd806
Fixed a link in README.
1 year ago
Alexander Andreev
6d5fa15604
Updated README.
1 year ago
Alexander Andreev
46abb111d8
Last fix for PKGBUILD.
1 year ago
Alexander Andreev
6d58dc3813
Removed debug printf.
1 year ago
Alexander Andreev
124073b688
Still trying to make it work.
1 year ago
Alexander Andreev
bc77af94c8
Makefile typo fix.
1 year ago
Alexander Andreev
39441e0b31
Trying to make PKGBUILD work.
1 year ago
Alexander Andreev
f225af0bb1
Fixed a typo in PKGBUILD.
1 year ago
Alexander Andreev
c55f63b79a
Included skipping of md5sum check.
1 year ago
Alexander Andreev
7d03901e24
Source files.
1 year ago
Alexander Andreev
a80cc83275
Archlinux's PKGBUILD.
1 year ago
Alexander Andreev
5edcbf9fa0
Makefile
1 year ago
Alexander Andreev
1a6312d3f6
[.gitignore] reduced.
1 year ago
Alexander Andreev
1be1781fa3
LICENSE update.
1 year ago
Alexander Andreev
b6c2f1c1d5
Initial commit
1 year ago