diff options
author | Lennart Weller <lhw@ring0.de> | 2013-03-17 00:30:11 +0100 |
---|---|---|
committer | Lennart Weller <lhw@ring0.de> | 2013-03-17 00:30:11 +0100 |
commit | 6a777182a36f3f58653127d57ced26e2dddd2680 (patch) | |
tree | 8368e963467a9b5743d54124833f570fd5018cef /src/web.vala | |
parent | ca7bbb46ce4c5a903f91c056fc117925310d7dd8 (diff) | |
download | serial-barcode-scanner-6a777182a36f3f58653127d57ced26e2dddd2680.tar.bz2 |
reduced precision
Diffstat (limited to 'src/web.vala')
-rw-r--r-- | src/web.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web.vala b/src/web.vala index c61c8b9..7823d35 100644 --- a/src/web.vala +++ b/src/web.vala @@ -440,8 +440,8 @@ public class WebServer { string table = ""; foreach(var e in db.get_stock()) { - table += "<tr><td><a href=\"/products/%s\">%s</a></td><td><a href=\"/products/%s\">%s</a></td><td>%d</td><td>f%€</td><td>%f€</td></tr>".printf( - e.id, e.id, e.id, e.name, e.amount, e.memberprice / 100, e.guestprice / 100 + table += "<tr><td><a href=\"/products/%s\">%s</a></td><td><a href=\"/products/%s\">%s</a></td><td>%d</td><td>%.2f€</td><td>%.2f€</td></tr>".printf( + e.id, e.id, e.id, e.name, e.amount, e.memberprice / 100.0, e.guestprice / 100.0 ); } |