Commit Graph

61 Commits

Author SHA1 Message Date
43d86103c4
A version was set to 1.1.2. And a year 2023 was set to 2024. 2024-04-26 04:06:31 +04:00
9112fc018c
src directory as well as a separate header file is absolutely not necessary. Also fixed a typo price_kwh_to_wattspersecond -> price_kwh_to_wattsecond, because because a price per kilowatt-hour is being converted to watt-second. Also added a notice about a licence that is used. 2024-04-26 04:03:48 +04:00
5fa6142b21
From PKGBUILD removed provides and conflicts options. 2023-09-23 05:20:03 +04:00
ba6f28db2b
In main.h set VERSION to 1.1.1. 2023-09-23 05:16:47 +04:00
a999cf3b98
Removed makedepends from PKGBUILD, because gcc is a part of base-devel package. 2023-09-17 23:53:50 +04:00
64bcbfbc45
if else was replaced by switch. Added handling for an unknown flag. 2023-09-17 23:49:06 +04:00
18a593e800
Return 99 if an unknown flag occured. Also updated price_to_wattspersecond to price_kwh_to_wattspersecond. 2023-09-17 23:48:13 +04:00
cd84aee61f
Removed a space symbol after an * symbol. 2023-09-17 22:51:28 +04:00
caa57721f7
A func price_to_wattspersecond was renamed to price_kwh_to_wattspersecond. 2023-09-17 22:49:13 +04:00
ca7859f8f8
puts was replaced by fputs to set stderr output. In version changed years and an e-mail address. 2023-09-17 22:48:18 +04:00
69ff91861b
Removed a space symbol after * symbol. Renamed price_to_wattspersecond to price_kwh_to_wattspersecond. 2023-09-17 22:47:17 +04:00
f4ce191ae7
Added PREFIX in Makefile.Fixed .PHONY. Standard c2x was changed to c99. 2023-09-17 22:46:12 +04:00
b0f1b367d2
Updated domain, added PREFIX to make, made use of $pkgver. Updated version to 1.1.1. 2023-09-17 22:45:14 +04:00
044b898db3
Updated years and an e-mail in LICENSE. 2023-09-17 22:43:54 +04:00
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.
2022-10-07 03:56:15 +04:00
cfa5c344cd
Added year 2022 to copyright.
Changed usage a little.
2022-10-07 03:51:52 +04:00
7eecfbee01
Removed unnecessary (double) casting of interval_to_seconds result to interval_t. 2022-10-07 03:50:57 +04:00
d398de1f8f
to_wattspersecond() changed to price_to_wattspersecond(). 2022-10-07 03:49:56 +04:00
d7501eb2a9
Changed formatting for parse_arguments(). 2022-10-07 03:48:34 +04:00
4e69cde16d
Weird int const chenged to const int in main(). 2022-10-07 03:46:56 +04:00
e68a52b95c [README.md] Decided to update our cost of kWh. :) 2022-10-06 22:09:17 +04:00
8699dbae89
Added info on how to install a downloaded package in Arch Linux. 2022-04-10 21:08:19 +04:00
0024d33575
Oh, dir must be removed as well. 2022-04-10 21:01:54 +04:00
8937e237dd
PKGBUILD made right. 2022-04-10 20:59:02 +04:00
9673e4cd9d
A little typo fix. And yeah, electricity became a little higher. :) 2022-04-10 18:45:54 +04:00
8556f85781
[main.{c,h}] Let's put some safety into this code! xD 2022-01-06 04:23:20 +04:00
1ef712c6a5
[Makefile] Added a simple test that verifies output. Mostly as an example of use for test command. 2022-01-06 04:21:08 +04:00
3d52d708bc
[README.md] shell to console. 2022-01-03 02:20:17 +04:00
7a0f155e44
Oh, commas are not allowed here... Yikes. 2021-12-30 03:34:56 +04:00
09be43c623
[PKGBUILD] Removed epoch. Set arch option properly. 2021-12-28 04:53:49 +04:00
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.
2021-12-25 23:29:38 +04:00
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.
2021-12-25 23:27:53 +04:00
1799c62c48
[Makefile] Added .PHONY. Removed object compilation. This project won't get extra .c files anyway, so let's compile directly into executable. 2021-12-25 23:22:32 +04:00
1abcf3d4cc
Updated README. 2021-12-25 00:08:45 +04:00
e61890310f
kwh-calc renamed to more suitable name kwh-cost. 2021-12-24 23:54:31 +04:00
25311a3b7e
Final fix. Let's set DESTDIR to / root by default. You can always change it with running make DESTDIR=your/path un/install. 2021-12-24 02:37:36 +04:00
5ab493e7cc
Replaced printf in print_version() and print_usage() with puts. 2021-12-24 01:45:13 +04:00
eeafa1c269
+NIGGER is not needed here. 2021-12-24 01:39:23 +04:00
8b301c7038
All this text was replaced by just an info on where to look for a license. 2021-12-24 01:37:34 +04:00
14262cd3c5
.vscode dir added to .gitignore. 2021-12-24 01:37:04 +04:00
1681902262
Let's copy a LICENSE file as it is mandatory by MIT license. 2021-12-24 01:36:29 +04:00
54aa50779f
Fixed KWh to be as it should be -- kWh. Another retarded moment fixed. :) 2021-12-24 01:25:33 +04:00
24d19fa6ee
Added newlines at the end of source files to be compatible with clang. 2021-12-24 01:01:43 +04:00
7306fd422b
Removed CC, since it is default anyway. 2021-12-24 01:01:13 +04:00
861cec3d9a
Am I retarded? I am retarded... :) Fixed makepkg -i command in README.md. 2021-12-24 00:57:01 +04:00
e8280301ae
Another, hopefully, final, fix of a link. 2021-12-24 00:50:35 +04:00
b3661fd806
Fixed a link in README. 2021-12-24 00:49:24 +04:00
6d5fa15604
Updated README. 2021-12-24 00:47:55 +04:00
46abb111d8
Last fix for PKGBUILD. 2021-12-24 00:26:18 +04:00
6d58dc3813
Removed debug printf. 2021-12-24 00:25:51 +04:00